pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/scripts strip trailing comments when searching for ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e26327fa45f2
branches:  trunk
changeset: 513441:e26327fa45f2
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Sun May 28 16:34:09 2006 +0000

description:
strip trailing comments when searching for SUBDIR+= lines in the Makefiles

diffstat:

 mk/scripts/mkreadme |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d0eb53197a36 -r e26327fa45f2 mk/scripts/mkreadme
--- a/mk/scripts/mkreadme       Sun May 28 16:13:11 2006 +0000
+++ b/mk/scripts/mkreadme       Sun May 28 16:34:09 2006 +0000
@@ -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 @@
     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



Home | Main Index | Thread Index | Old Index