[80464] contrib/mpab

jmr at macports.org jmr at macports.org
Wed Jul 13 08:00:48 PDT 2011


Revision: 80464
          http://trac.macports.org/changeset/80464
Author:   jmr at macports.org
Date:     2011-07-13 08:00:48 -0700 (Wed, 13 Jul 2011)
Log Message:
-----------
mpab: change deploy_archives.sh to gather_archives.sh

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

Removed Paths:
-------------
    contrib/mpab/deploy_archives.sh

Deleted: contrib/mpab/deploy_archives.sh
===================================================================
--- contrib/mpab/deploy_archives.sh	2011-07-13 14:59:29 UTC (rev 80463)
+++ contrib/mpab/deploy_archives.sh	2011-07-13 15:00:48 UTC (rev 80464)
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-if [[ -z "$PORTLISTFILE" ]]; then
-    PORTLISTFILE=portlist
-fi
-
-if [[ -z "$PREFIX" ]]; then
-    PREFIX="/opt/local"
-fi
-
-# download server hostname
-if [[ -z "$DLHOST" ]]; then
-    DLHOST=""
-fi
-
-# path where it keeps archives
-if [[ -z "$DLPATH" ]]; then
-    DLPATH="/archives"
-fi
-
-# path where archives get uploaded to master
-if [[ -z "$ULPATH" ]]; then
-    ULPATH="${PREFIX}/var/macports/software"
-fi
-
-# private key to use for signing
-if [[ -z "$PRIVKEY" ]]; then
-    PRIVKEY=""
-fi
-
-
-for portname in `cat $PORTLISTFILE`; 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
-            portversion=$(${PREFIX}/bin/port info --version --line ${portname})
-            portrevision=$(${PREFIX}/bin/port info --revision --line ${portname})
-            for archive in ${ULPATH}/${portname}/${portname}-${portversion}_${portrevision}[+.]*; do
-                aname=$(basename $archive)
-                echo deploying archive: $aname
-                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};
-		else
-                    mkdir -p ${DLPATH}/${portname};
-                    rsync -av --ignore-existing ./${aname}.rmd160 ${archive} ${DLPATH}/${portname};
-                fi
-                rm -f ./${aname}.rmd160
-            done
-        else
-            echo $portname is not distributable
-        fi
-    fi
-done

Copied: contrib/mpab/gather_archives.sh (from rev 80462, contrib/mpab/deploy_archives.sh)
===================================================================
--- contrib/mpab/gather_archives.sh	                        (rev 0)
+++ contrib/mpab/gather_archives.sh	2011-07-13 15:00:48 UTC (rev 80464)
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+if [[ -z "$PORTLISTFILE" ]]; then
+    PORTLISTFILE=portlist
+fi
+
+if [[ -z "$PREFIX" ]]; then
+    PREFIX="/opt/local"
+fi
+
+# path where archives should be staged before being uploaded to the master
+if [[ -z "$ULPATH" ]]; then
+    ULPATH="archive_staging"
+fi
+
+mkdir -p $ULPATH
+for portname in `cat $PORTLISTFILE`; 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
+            portversion=$(${PREFIX}/bin/port info --version --line ${portname})
+            portrevision=$(${PREFIX}/bin/port info --revision --line ${portname})
+            for archive in ${PREFIX}/var/macports/software/${portname}/${portname}-${portversion}_${portrevision}[+.]*; do
+                aname=$(basename $archive)
+                echo preparing archive for upload: $aname
+                mkdir -p ${ULPATH}/${portname}
+                cp $archive ${ULPATH}/${portname}/
+            done
+        else
+            echo $portname is not distributable
+        fi
+    fi
+done
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110713/120aa6a8/attachment.html>


More information about the macports-changes mailing list