[23471] users/pipping/test.sh
source_changes at macosforge.org
source_changes at macosforge.org
Sun Apr 1 15:28:44 PDT 2007
Revision: 23471
http://trac.macosforge.org/projects/macports/changeset/23471
Author: pipping at macports.org
Date: 2007-04-01 15:28:43 -0700 (Sun, 01 Apr 2007)
Log Message:
-----------
* make sure a port isn't matches more than once
* exempt lines starting with a sharp
Modified Paths:
--------------
users/pipping/test.sh
Modified: users/pipping/test.sh
===================================================================
--- users/pipping/test.sh 2007-04-01 20:24:19 UTC (rev 23470)
+++ users/pipping/test.sh 2007-04-01 22:28:43 UTC (rev 23471)
@@ -2,6 +2,13 @@
# room for customization
SED=/usr/bin/sed
-GREP=/usr/bin/grep
+EGREP=/usr/bin/egrep
-$GREP -E "(port|(path|lib|bin):[^:]+):$1([\t ]|$)" */*/Portfile | $SED "s=/Portfile:.*==g"
+for i in */*/Portfile;
+ do if [ `$EGREP -c "^[^#]*(port|(path|lib|bin):[^:]+):$1([\t ]|$)" $i` \
+ -gt 0 ]
+ then echo $i | $SED "s=/Portfile=="
+ fi
+done;
+
+# | $SED "s=/Portfile:.*==g"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070401/473977b7/attachment.html
More information about the macports-changes
mailing list