[81246] contrib/mpab/do_status.sh

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


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

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

Modified: contrib/mpab/do_status.sh
===================================================================
--- contrib/mpab/do_status.sh	2011-07-28 05:46:49 UTC (rev 81245)
+++ contrib/mpab/do_status.sh	2011-07-28 05:50:09 UTC (rev 81246)
@@ -13,7 +13,14 @@
 
 rm -f $STATUS_LOG
 failed=0
-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
         echo "[OK] ${portname}" >> $STATUS_LOG
     elif ls logs-*/fail/${portname}.log > /dev/null 2>&1 ; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110727/7af2e3e9/attachment.html>


More information about the macports-changes mailing list