diff options
author | hubertf <hubertf@pkgsrc.org> | 1999-08-22 01:30:15 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1999-08-22 01:30:15 +0000 |
commit | dc3aa46cc2cafda06c36af06303ac7763fe77ed2 (patch) | |
tree | f4434c10b9cc33d0ae79ca1c0474ce9dcc6930e9 | |
parent | 58dd80e8d7fa515262b0eb9f8f647d983e6b6f2a (diff) | |
download | pkgsrc-dc3aa46cc2cafda06c36af06303ac7763fe77ed2.tar.gz |
Collect information from pkgsrc/*/README.html into one long list
(README-all.html), and reference this file.
-rw-r--r-- | Makefile | 39 | ||||
-rw-r--r-- | templates/README.category | 4 | ||||
-rw-r--r-- | templates/README.pkg | 4 | ||||
-rw-r--r-- | templates/README.top | 6 |
4 files changed, 48 insertions, 5 deletions
@@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 1999/06/06 19:33:17 frueauf Exp $ +# $NetBSD: Makefile,v 1.25 1999/08/22 01:30:15 hubertf Exp $ # FreeBSD Id: Makefile,v 1.35 1997/08/19 07:10:01 fenner Exp # @@ -78,3 +78,40 @@ search: ${.CURDIR}/INDEX @grep ${key} ${.CURDIR}/INDEX | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nArch:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$10); }' .endif + +# +# Generate list of all packages by extracting information from +# the category/README.html pages +# +readme-all: + @mv README-all.html README-all.html.BAK + @${MAKE} README-all.html + @if cmp -s README-all.html README-all.html.BAK ; then \ + mv README-all.html.BAK README-all.html ; \ + else \ + rm -f README-all.html.BAK ; \ + fi + +README-all.html: + @rm -f $@.new + @rm -f $@.newsorted + @echo -n "Processing categories for $@:" +.for category in ${SUBDIR} + @if [ -f ${category}/README.html ]; then \ + echo -n ' ${category}' ; \ + grep '^<TR>' ${category}/README.html \ + | sed -e 's|"|"${category}/|' \ + -e 's| <TD>| <TD>(<A HREF="${category}/README.html">${category}</A>) <TD>|' \ + -e 's|<TR>|<TR VALIGN=TOP>|' \ + >> $@.new ; \ + fi +.endfor + @echo "." + @sort -t '">' +2 <$@.new >$@.newsorted + @cat templates/README.all \ + | ${SED} \ + -e '/%%PKGS%%/r$@.newsorted' \ + -e '/%%PKGS%%/d' \ + > $@ + @rm -f $@.new + @rm -f $@.newsorted diff --git a/templates/README.category b/templates/README.category index f7944b9b325..a0bb1cc4fcb 100644 --- a/templates/README.category +++ b/templates/README.category @@ -1,4 +1,4 @@ -<!-- $NetBSD: README.category,v 1.5 1998/05/29 03:25:51 hubertf Exp $ --> +<!-- $NetBSD: README.category,v 1.6 1999/08/22 01:30:16 hubertf Exp $ --> <html> <head> <title>The NetBSD Packages Collection: %%CATEGORY%%</title> @@ -26,6 +26,8 @@ in this directory: <hr noshade> [ <a href="../README.html"> Go to top of packages tree</a> +| +<a href="../README-all.html"> List all packages</a> ] </body> </html> diff --git a/templates/README.pkg b/templates/README.pkg index 2340063343e..fd7932ff9f3 100644 --- a/templates/README.pkg +++ b/templates/README.pkg @@ -1,4 +1,4 @@ -<!-- $NetBSD: README.pkg,v 1.8 1998/08/20 15:17:28 tsarna Exp $ --> +<!-- $NetBSD: README.pkg,v 1.9 1999/08/22 01:30:16 hubertf Exp $ --> <html> <head> <title>The NetBSD Packages Collection: %%PORT%%</title> @@ -60,6 +60,8 @@ precompiled binary form for the following machine architectures: <a href="../README.html"> Go up one level</a> | <a href="../../README.html"> Go to top of packages tree</a> +| +<a href="../../README-all.html"> List all packages</a> ] </body> </html> diff --git a/templates/README.top b/templates/README.top index c71d9d010ea..d7686a21d8c 100644 --- a/templates/README.top +++ b/templates/README.top @@ -1,4 +1,4 @@ -<!-- $NetBSD: README.top,v 1.7 1998/08/23 01:32:19 hubertf Exp $ --> +<!-- $NetBSD: README.top,v 1.8 1999/08/22 01:30:16 hubertf Exp $ --> <html> <head> <title>The NetBSD Packages Collection</title> @@ -18,7 +18,9 @@ The packages collection is divided into categories of packages. %%DESCR%% </p> -<p>Here are the one-line descriptions for each of the categories: +<p>Here are the one-line descriptions for each of the categories, +a <a href="README-all.html">complete list of all packages</a> is also +available: </p> <hr noshade> |