svn commit: r238661 - projects/portbuild/scripts

Mark Linimon linimon at FreeBSD.org
Sat Jul 21 00:28:12 UTC 2012


Author: linimon (doc,ports committer)
Date: Sat Jul 21 00:28:11 2012
New Revision: 238661
URL: http://svn.freebsd.org/changeset/base/238661

Log:
  Allow target filespecs to have comments in them.  Lines beginning with comments are skipped.

Modified:
  projects/portbuild/scripts/makeduds
  projects/portbuild/scripts/makeindex
  projects/portbuild/scripts/makerestr

Modified: projects/portbuild/scripts/makeduds
==============================================================================
--- projects/portbuild/scripts/makeduds	Fri Jul 20 23:56:23 2012	(r238660)
+++ projects/portbuild/scripts/makeduds	Sat Jul 21 00:28:11 2012	(r238661)
@@ -47,7 +47,7 @@ export PORT_DBDIR=/nonexistentport
 DUDS_PORTS=.
 if [ -n "$target" ]; then
   if [ -f "$target" ]; then
-    DUDS_PORTS=$(cat $target | tr '\n' ' ')
+    DUDS_PORTS=$(grep -v "^#" $target | tr '\n' ' ')
   else
     echo "File $target doesn't exist. Exiting."
     exit 1

Modified: projects/portbuild/scripts/makeindex
==============================================================================
--- projects/portbuild/scripts/makeindex	Fri Jul 20 23:56:23 2012	(r238660)
+++ projects/portbuild/scripts/makeindex	Sat Jul 21 00:28:11 2012	(r238661)
@@ -53,7 +53,7 @@ export LOCALBASE=/nonexistentlocal
 INDEX_PORTS=.
 if [ -n "$target" ]; then
   if [ -f "$target" ]; then
-    INDEX_PORTS=$(cat $target | tr '\n' ' ')
+    INDEX_PORTS=$(grep -v "^#" $target | tr '\n' ' ')
   else
     echo "File $target doesn't exist. Exiting."
     exit 1

Modified: projects/portbuild/scripts/makerestr
==============================================================================
--- projects/portbuild/scripts/makerestr	Fri Jul 20 23:56:23 2012	(r238660)
+++ projects/portbuild/scripts/makerestr	Sat Jul 21 00:28:11 2012	(r238661)
@@ -40,7 +40,7 @@ export PORT_DBDIR=/nonexistentport
 RESTR_PORTS=.
 if [ -n "$target" ]; then
   if [ -f "$target" ]; then
-    RESTR_PORTS=$(cat $target | tr '\n' ' ')
+    RESTR_PORTS=$(grep -v "^#" $target | tr '\n' ' ')
   else
     echo "File $target doesn't exist. Exiting."
     exit 1


More information about the svn-src-projects mailing list