[79962] contrib/mpab

jmr at macports.org jmr at macports.org
Thu Jun 30 16:08:49 PDT 2011


Revision: 79962
          http://trac.macports.org/changeset/79962
Author:   jmr at macports.org
Date:     2011-06-30 16:08:48 -0700 (Thu, 30 Jun 2011)
Log Message:
-----------
mpab: use consistent defaults

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

Modified: contrib/mpab/deploy_archives.sh
===================================================================
--- contrib/mpab/deploy_archives.sh	2011-06-30 23:08:03 UTC (rev 79961)
+++ contrib/mpab/deploy_archives.sh	2011-06-30 23:08:48 UTC (rev 79962)
@@ -4,12 +4,12 @@
     PORTLISTFILE=portlist
 fi
 if [[ -z "$PREFIX" ]]; then
-    PREFIX="../opt/local"
+    PREFIX="/opt/local"
 fi
 # FIXME: configure these
 # download server hostname
 if [[ -z "$DLHOST" ]]; then
-    DLHOST=mparchives.local
+    DLHOST=""
 fi
 # path where it keeps archives
 if [[ -z "$DLPATH" ]]; then
@@ -30,9 +30,13 @@
             for archive in ${PREFIX}/var/macports/software/${portname}/${portname}-${portversion}_${portrevision}[+.]*; do
                 aname=$(basename $archive)
                 echo deploying archive: $aname
-                #openssl dgst -ripemd160 -sign "${PRIVKEY}" -out ./${aname}.rmd160 ${archive}
-                #ssh ${DLHOST} mkdir -p ${DLPATH}/${portname}
-                #rsync -av --ignore-existing ./${aname}.rmd160 ${archive} ${DLHOST}:${DLPATH}/${portname}
+                if [[ -n "$PRIVKEY" ]]; then
+                    openssl dgst -ripemd160 -sign "${PRIVKEY}" -out ./${aname}.rmd160 ${archive}
+                fi
+                if [[ -n "$DLHOST" ]]; then
+                    ssh ${DLHOST} mkdir -p ${DLPATH}/${portname}
+                    rsync -av --ignore-existing ./${aname}.rmd160 ${archive} ${DLHOST}:${DLPATH}/${portname}
+                fi
                 rm -f ./${aname}.rmd160
             done
         else

Modified: contrib/mpab/do_status.sh
===================================================================
--- contrib/mpab/do_status.sh	2011-06-30 23:08:03 UTC (rev 79961)
+++ contrib/mpab/do_status.sh	2011-06-30 23:08:48 UTC (rev 79962)
@@ -4,7 +4,7 @@
     PORTLISTFILE=portlist
 fi
 if [[ -z "$PREFIX" ]]; then
-    PREFIX="../opt/local"
+    PREFIX="/opt/local"
 fi
 if [[ -z "$STATUS_LOG" ]]; then
     STATUS_LOG=portstatus.log
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110630/f2c04aae/attachment.html>


More information about the macports-changes mailing list