diff options
author | asau <asau@pkgsrc.org> | 2014-11-24 00:52:09 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2014-11-24 00:52:09 +0000 |
commit | 7bb3bf8f0e0bf88a967fc99741c6fa713658480f (patch) | |
tree | 70a870007d6214b1f71f52e9b3efbba20be8bd07 /pkgtools | |
parent | 39a11830d7a5cb473aa757c233926eaf9a4dcad6 (diff) | |
download | pkgsrc-7bb3bf8f0e0bf88a967fc99741c6fa713658480f.tar.gz |
Allow empty lines, blank space, and "#"-delimited comments in list of packages to build.
Diffstat (limited to 'pkgtools')
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/scan | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/scan b/pkgtools/pbulk/files/pbulk/scripts/scan index 71c19a9e43e..26c01092747 100755 --- a/pkgtools/pbulk/files/pbulk/scripts/scan +++ b/pkgtools/pbulk/files/pbulk/scripts/scan @@ -1,5 +1,5 @@ #!@SH@ -# $NetBSD: scan,v 1.8 2012/11/23 12:13:35 joerg Exp $ +# $NetBSD: scan,v 1.9 2014/11/24 00:52:09 asau Exp $ # # Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. # All rights reserved. @@ -79,7 +79,7 @@ if [ -z "${limited_list}" ]; then else initial=1 mkdir -p ${loc} - grep -v '^#' "${limited_list}" > ${loc}/missing + sed -e 's/\#.*$//' -e 's/[ ]*$//' -e '/^$/d' "${limited_list}" > ${loc}/missing while [ -s ${loc}/missing ]; do sort -u ${loc}/missing > ${loc}/missing.s |