summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1999-10-22 00:54:23 +0000
committerhubertf <hubertf@pkgsrc.org>1999-10-22 00:54:23 +0000
commit3e15e3b2f7b121760426c4207d56142bcd0dc9eb (patch)
treeb3fb105258e7a190829b951c8748c008163dbfb5 /Makefile
parent8955a8a3b1cda3d73d385914a1702a0ef661d292 (diff)
downloadpkgsrc-3e15e3b2f7b121760426c4207d56142bcd0dc9eb.tar.gz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 97da641238a..2794346d328 100644
--- a/Makefile
+++ b/Makefile
@@ -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 @@ README-all.html:
| 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