[81245] contrib/mpab/gather_archives.sh

jmr at macports.org jmr at macports.org
Wed Jul 27 22:46:50 PDT 2011


Revision: 81245
          http://trac.macports.org/changeset/81245
Author:   jmr at macports.org
Date:     2011-07-27 22:46:49 -0700 (Wed, 27 Jul 2011)
Log Message:
-----------
mpab: handle 'all' in gather_archives.sh

Modified Paths:
--------------
    contrib/mpab/gather_archives.sh

Modified: contrib/mpab/gather_archives.sh
===================================================================
--- contrib/mpab/gather_archives.sh	2011-07-28 03:56:43 UTC (rev 81244)
+++ contrib/mpab/gather_archives.sh	2011-07-28 05:46:49 UTC (rev 81245)
@@ -14,7 +14,13 @@
 fi
 
 mkdir -p $ULPATH
-for portname in `cat $PORTLISTFILE`; do
+if [[ `head -n1 $PORTLISTFILE` == "all" ]]; then
+    ports=`${PREFIX}/bin/port -q echo all | tr '\n' ' '`
+else
+    ports=`cat $PORTLISTFILE`
+fi
+
+for portname in $ports; do
     if ls logs-*/success/${portname}.log > /dev/null 2>&1 ; then
         if ./mpexport/base/portmgr/jobs/port_binary_distributable.tcl ${portname}; then
             echo $portname is distributable
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110727/23508977/attachment.html>


More information about the macports-changes mailing list