aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-15 13:23:28 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-15 13:23:28 +0000
commitfea0a31bb1bf37a76cb2ef4d3dc5856c1d7494ce (patch)
tree0b748c88e42b50f2de6cabc99c3ef5c5458b3c32
parentad1201b67834b3c7e53ae731d3d9af2c8c5e3eaf (diff)
downloadpaludis-fea0a31bb1bf37a76cb2ef4d3dc5856c1d7494ce.tar.gz
paludis-fea0a31bb1bf37a76cb2ef4d3dc5856c1d7494ce.tar.xz
Include current version and limited release notes on the front page
-rw-r--r--doc/Makefile.am19
-rw-r--r--doc/index.html.skel7
2 files changed, 19 insertions, 7 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 7f0e60f..eabd11e 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -40,7 +40,7 @@ EXTRA_DIST = doxygen.conf.in header.html footer.html paludis.css \
CLEANFILES = *~ news.html index.html changelog.html licence.html authors.html faq.html \
migration.html cachefiles.html configuration.html portagedifferences.html programmingwithpaludis.html \
sets.html hooks.html \
- cleannews cleanchangelog cleanauthors cleanfaqtoc cleanbasiccppapp cleanbasicrubyapp
+ cleannews cleanrecentnews cleanchangelog cleanauthors cleanfaqtoc cleanbasiccppapp cleanbasicrubyapp
MAINTAINERCLEANFILES = Makefile.in $(tagfiles)
@@ -135,11 +135,18 @@ changelog.html : changelog.html.skel cleanchangelog htmlheader.html htmlfooter.h
-e '/@FOOTER@/r htmlfooter.html' \
-e '/@FOOTER@/d' < $(srcdir)/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' \
+cleanrecentnews : news.html
+ sed -n -e '/^<h3>[0-9]\+\.[^:]\+:/,/<.li><.ul><h3>/p' < news.html \
+ | sed -e '1s/.*<.h3>//' -e '$$s,.*,</ul>,' > cleanrecentnews
+
+index.html : index.html.skel htmlheader.html htmlfooter.html cleanrecentnews
+ sed -e '/[@]HEADER@/r htmlheader.html' \
+ -e '/[@]HEADER@/d' \
+ -e '/[@]FOOTER@/r htmlfooter.html' \
+ -e '/[@]FOOTER@/d' \
+ -e 's/[@]VERSION@/$(VERSION_FULL)/g' \
+ -e '/[@]RECENTNEWS@/r cleanrecentnews' \
+ -e '/[@]RECENTNEWS@/d' \
< $(srcdir)/index.html.skel > index.html
configuration.html : configuration.html.skel htmlheader.html htmlfooter.html
diff --git a/doc/index.html.skel b/doc/index.html.skel
index 0a35f71..0e3f7e3 100644
--- a/doc/index.html.skel
+++ b/doc/index.html.skel
@@ -12,7 +12,12 @@
<p>Paludis is a package manager for use with <a
href="http://www.gentoo.org/">Gentoo</a> and related distributions. It
- is entirely independent of Portage.</p>
+ is entirely independent of Portage. The current version is <strong>@VERSION@</strong>,
+ with the following changes:</p>
+
+@RECENTNEWS@
+
+ <p>See the <a href="news.html">Release Notes</a> for previous releases.</p>
<h2>For prospective users:</h2>