From owner-svn-src-projects@FreeBSD.ORG Sat Jul 21 00:28:12 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0493C106566C; Sat, 21 Jul 2012 00:28:12 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CB3378FC08; Sat, 21 Jul 2012 00:28:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6L0SBmO058112; Sat, 21 Jul 2012 00:28:11 GMT (envelope-from linimon@svn.freebsd.org) Received: (from linimon@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6L0SBZX058108; Sat, 21 Jul 2012 00:28:11 GMT (envelope-from linimon@svn.freebsd.org) Message-Id: <201207210028.q6L0SBZX058108@svn.freebsd.org> From: Mark Linimon Date: Sat, 21 Jul 2012 00:28:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r238661 - projects/portbuild/scripts X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 00:28:12 -0000 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