Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2012 00:28:11 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r238661 - projects/portbuild/scripts
Message-ID:  <201207210028.q6L0SBZX058108@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207210028.q6L0SBZX058108>