summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2006-05-28 16:34:09 +0000
committerdmcmahill <dmcmahill>2006-05-28 16:34:09 +0000
commitbdd8c3e84f958144e9b19e415ec31a831f6bf75a (patch)
tree30c1d96f48e1580c6148d27ba3ded04856d07edc /mk/scripts
parent5db2a358e2016b625876b48d7313b8c5d0daced6 (diff)
downloadpkgsrc-bdd8c3e84f958144e9b19e415ec31a831f6bf75a.tar.gz
strip trailing comments when searching for SUBDIR+= lines in the Makefiles
Diffstat (limited to 'mk/scripts')
-rwxr-xr-xmk/scripts/mkreadme4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/scripts/mkreadme b/mk/scripts/mkreadme
index 4dbc37b8b8e..0b41c161f37 100755
--- a/mk/scripts/mkreadme
+++ b/mk/scripts/mkreadme
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mkreadme,v 1.8 2005/06/01 18:16:20 wiz Exp $
+# $NetBSD: mkreadme,v 1.9 2006/05/28 16:34:09 dmcmahill Exp $
#
# Script for README.html generation
#
@@ -322,7 +322,7 @@ if [ "x$restart" = "xno" ] ; then
rm -fr $DATABASEFILE
cd ${PKGSRCDIR}
- list=`${GREP} '^[ \t]*'SUBDIR */Makefile | ${GREP} -v regress/ | ${SED} 's,/Makefile.*=[[:space:]]*,/,'`
+ list=`${GREP} '^[ \t]*'SUBDIR */Makefile | ${GREP} -v regress/ | ${SED} -e 's,/Makefile.*=[[:space:]]*,/,' -e 's;#.*;;g' `
for pkgdir in $list
do
if [ ! -d $pkgdir ]; then