diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2006-05-28 16:34:09 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2006-05-28 16:34:09 +0000 |
commit | 4fcba45fc123611b1d3d877b0f3468f3b2398f98 (patch) | |
tree | 30c1d96f48e1580c6148d27ba3ded04856d07edc /mk/scripts | |
parent | f23d9d0aff26d2905debc602a7510bffdb3aca2b (diff) | |
download | pkgsrc-4fcba45fc123611b1d3d877b0f3468f3b2398f98.tar.gz |
strip trailing comments when searching for SUBDIR+= lines in the Makefiles
Diffstat (limited to 'mk/scripts')
-rwxr-xr-x | mk/scripts/mkreadme | 4 |
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 |