diff options
author | abs <abs> | 1999-12-15 15:52:17 +0000 |
---|---|---|
committer | abs <abs> | 1999-12-15 15:52:17 +0000 |
commit | bc1ab5712fb61fad23f5030369c3a5edd6831d1c (patch) | |
tree | ad5a79fe6fed6072e75e48328bb901b63284cfdd /mk | |
parent | 8cede06456b37e9522b83bc45c1c0a9db80f1f0a (diff) | |
download | pkgsrc-bc1ab5712fb61fad23f5030369c3a5edd6831d1c.tar.gz |
Fix off by one count of packages in a category in README.html
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.subdir.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.subdir.mk b/mk/bsd.pkg.subdir.mk index 34021ea190c..2e39aacd857 100644 --- a/mk/bsd.pkg.subdir.mk +++ b/mk/bsd.pkg.subdir.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.subdir.mk,v 1.32 1999/12/06 23:40:55 abs Exp $ +# $NetBSD: bsd.pkg.subdir.mk,v 1.33 1999/12/15 15:52:17 abs Exp $ # Derived from: FreeBSD Id: bsd.port.subdir.mk,v 1.19 1997/03/09 23:10:56 wosch Exp # from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 # @@ -52,6 +52,7 @@ STRIPFLAG?= -s OPSYS!= uname -s .endif +AWK?= /usr/bin/awk BASENAME?= /usr/bin/basename ECHO?= /bin/echo ECHO_MSG?= ${ECHO} @@ -161,7 +162,7 @@ README.html: .PRECIOUS .endif .endfor @${SORT} -t '>' +3 -4 $@.tmp > $@.tmp2 - @${AWK} awk '{ ++n } END { print n-1 }' < $@.tmp2 > $@.tmp4 + @${AWK} '{ ++n } END { print n }' < $@.tmp2 > $@.tmp4 .if exists(${.CURDIR}/pkg/DESCR) @${HTMLIFY} ${.CURDIR}/pkg/DESCR > $@.tmp3 .else |