aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile.am
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-17 20:52:05 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-17 20:52:05 +0000
commit9520b05409e4a023212cc17edea4f9693c30344c (patch)
tree17892324994eaccf7d7864c9d03f0a4c5bdc065f /doc/Makefile.am
parent1d2a4e46580b69a917213071df619a11634a6937 (diff)
downloadpaludis-9520b05409e4a023212cc17edea4f9693c30344c.tar.gz
paludis-9520b05409e4a023212cc17edea4f9693c30344c.tar.xz
More webpage work
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am99
1 files changed, 93 insertions, 6 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 4bf8d1eaf..ba3685948 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -22,9 +22,23 @@ docfiles = \
doc_programming_with_paludis.doxygen \
doc_cache_files.doxygen
-EXTRA_DIST = doxygen.conf.in header.html footer.html paludis.css $(docfiles) $(tagfiles)
-CLEANFILES = *~
-MAINTAINERCLEANFILES = Makefile.in $(tagfiles)
+htmlfiles = \
+ index.html \
+ news.html \
+ changelog.html \
+ licence.html \
+ authors.html \
+ arrow.svg
+
+EXTRA_DIST = doxygen.conf.in header.html footer.html paludis.css \
+ $(docfiles) $(tagfiles) $(htmlfiles) arrow.png htaccess \
+ news.html.skel index.html.skel changelog.html.skel licence.html.skel authors.html.skel \
+ htmlheader.html htmlfooter.html
+
+CLEANFILES = *~ news.html index.html changelog.html licence.html authors.html \
+ cleannews cleanchangelog cleanauthors
+
+MAINTAINERCLEANFILES = Makefile.in $(tagfiles) arrow.png
libstdc++.tag :
wget -O $@ http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
@@ -66,13 +80,86 @@ rdoc :
endif
+cleanauthors : ../AUTHORS
+ sed -e '1,3d' \
+ -e 's,&,\&amp;,g' -e 's,<,\&lt;,g' -e 's,>,\&gt;,g' -e 's,@, at ,g' \
+ -e 's,^ \(.*\),<dd>\1</dd>,' \
+ -e 's,^\([^ <].*\),<dt>\1</dt>,' \
+ < ../AUTHORS > cleanauthors
+
+authors.html : authors.html.skel cleanauthors htmlheader.html htmlfooter.html
+ sed -e '/@AUTHORS@/r cleanauthors' -e '/@AUTHORS@/d' \
+ -e '/@HEADER@/r htmlheader.html' \
+ -e '/@HEADER@/d' \
+ -e '/@FOOTER@/r htmlfooter.html' \
+ -e '/@FOOTER@/d' < authors.html.skel > authors.html
+
+cleannews : ../NEWS
+ sed -e '1,6d' -e '$$d' < ../NEWS > cleannews
+
+news.html : news.html.skel cleannews htmlheader.html htmlfooter.html
+ sed -e '/@RELEASE_NOTES@/r cleannews' -e '/@RELEASE_NOTES@/d' \
+ -e '/@HEADER@/r htmlheader.html' \
+ -e '/@HEADER@/d' \
+ -e '/@FOOTER@/r htmlfooter.html' \
+ -e '/@FOOTER@/d' < news.html.skel | \
+ sed \
+ -e 's~^\([0-9].*\):~</li></ul><h3>&</h3><ul>~' \
+ -e 's~^ \*~</li><li>~' \
+ | tr '\012' '\007' \
+ | sed \
+ -e 's~</li></ul><h3>~<h3>~' \
+ -e 's~<ul>\a*</li>~<ul>~g' \
+ | tr '\007' '\012' > news.html
+
+cleanchangelog : ../ChangeLog
+ sed -e '1,7d' -e '$$d' -e 's,&,\&amp;,g' -e 's,<,\&lt;,g' -e 's,>,\&gt;,g' -e 's,@, at ,g' \
+ < ../ChangeLog \
+ | sed \
+ -e 's~^\(200[0-9]-[0-9][0-9].*\)~<dt>&</dt>~' \
+ | tr '\012' '\007' \
+ | sed -e 's~\a\t[\*\+] ~\a<dd>~g' \
+ | sed -e 's~\([^>]\)\a\a~\1</dd>\a~g' \
+ | sed \
+ -e 's,<dd>\([^:<]\+\):,<dd><code>\1</code>:<br />,g' \
+ | tr '\007' '\012' > cleanchangelog
+
+changelog.html : changelog.html.skel cleanchangelog htmlheader.html htmlfooter.html
+ sed -e '/@CHANGELOG@/r cleanchangelog' -e '/@CHANGELOG@/d' \
+ -e '/@HEADER@/r htmlheader.html' \
+ -e '/@HEADER@/d' \
+ -e '/@FOOTER@/r htmlfooter.html' \
+ -e '/@FOOTER@/d' < changelog.html.skel > changelog.html
+
+index.html : index.html.skel htmlheader.html htmlfooter.html
+ sed -e '/@HEADER@/r htmlheader.html' \
+ -e '/@HEADER@/d' \
+ -e '/@FOOTER@/r htmlfooter.html' \
+ -e '/@FOOTER@/d' \
+ < index.html.skel > index.html
+
+licence.html : licence.html.skel htmlheader.html htmlfooter.html ../COPYING
+ sed -e '/@HEADER@/r htmlheader.html' \
+ -e '/@HEADER@/d' \
+ -e '/@FOOTER@/r htmlfooter.html' \
+ -e '/@FOOTER@/d' \
+ -e '/@COPYING@/r ../COPYING' \
+ -e '/@COPYING@/d' \
+ < licence.html.skel > licence.html
+
clean-local :
rm -fr www
-maintainer-clean-local :
- rm -fr www
+arrow.png : arrow.svg
+ convert arrow.svg arrow.png
+
+htmlpages : $(htmlfiles) paludis.css www arrow.png
+ for s in $(htmlfiles) paludis.css arrow.png ; do cp $(srcdir)/$$s www/ ; done
+
+dothtaccess : htaccess
+ cp $(srcdir)/htaccess www/.htaccess
-homepage : doxygen rdoc
+homepage : doxygen rdoc htmlpages dothtaccess
upload-homepage : homepage
cd `readlink -f $(top_srcdir)/doc/www` && tar jc ./ --exclude ./ | \