Include the total number of packages at the top of README-all.html, and trunk
authorhubertf <hubertf@pkgsrc.org>
Fri, 22 Oct 1999 00:54:23 +0000
branchtrunk
changeset 8134 4f94734d3e69
parent 8133 342f40d86165
child 8135 0c050e63b0e3
Include the total number of packages at the top of README-all.html, and lose the <TD VALIGN=TOP> entries (the <TR VALIGN=TOP> should be sufficient). Suggested by David Brownlee <abs@mono.org> on tech-pkg@netbsd.org.
Makefile
templates/README.all
--- a/Makefile	Thu Oct 21 18:42:18 1999 +0000
+++ b/Makefile	Fri Oct 22 00:54:23 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 1999/08/23 21:37:28 hubertf Exp $
+# $NetBSD: Makefile,v 1.27 1999/10/22 00:54:23 hubertf Exp $
 # FreeBSD Id: Makefile,v 1.35 1997/08/19 07:10:01 fenner Exp
 #
 
@@ -103,15 +103,20 @@
 		| sed -e 's|"|"${category}/|' \
 		      -e 's| <TD>| <TD>(<A HREF="${category}/README.html">${category}</A>) <TD>|' \
 		      -e 's|<TR>|<TR VALIGN=TOP>|' \
+		      -e 's|<TD VALIGN=TOP>|<TD>|' \
 		>> $@.new ; \
 	fi
 .endfor
 	@echo "."
 	@sort -t '">' +2 <$@.new >$@.newsorted
+	@wc -l $@.newsorted | awk '{ print $$1 }'  >$@.npkgs
 	@cat templates/README.all \
 	| ${SED} \
+                -e '/%%NPKGS%%/r$@.npkgs' \
+                -e '/%%NPKGS%%/d' \
                 -e '/%%PKGS%%/r$@.newsorted' \
                 -e '/%%PKGS%%/d' \
         	> $@ 
+	@rm -f $@.npkgs
 	@rm -f $@.new
 	@rm -f $@.newsorted
--- a/templates/README.all	Thu Oct 21 18:42:18 1999 +0000
+++ b/templates/README.all	Fri Oct 22 00:54:23 1999 +0000
@@ -1,4 +1,4 @@
-<!-- $NetBSD: README.all,v 1.2 1999/08/23 22:02:27 hubertf Exp $ -->
+<!-- $NetBSD: README.all,v 1.3 1999/10/22 00:54:24 hubertf Exp $ -->
 <html>
 <head>
 <title>All NetBSD Packages</title>
@@ -11,9 +11,11 @@
 <h1>The NetBSD Packages Collection</h1>
 
 <p>
-The following list contains all packages currently available
+The following list contains all
+%%NPKGS%%
+packages currently available
 in the NetBSD Packages Collection, sorted alphabetically. 
-Please select an entry for more details.
+Please select an entry for more details!
 </p>
 
 <hr noshade>