[79893] contrib/mpab
jmr at macports.org
jmr at macports.org
Tue Jun 28 22:18:28 PDT 2011
Revision: 79893
http://trac.macports.org/changeset/79893
Author: jmr at macports.org
Date: 2011-06-28 22:18:26 -0700 (Tue, 28 Jun 2011)
Log Message:
-----------
mpab: move complicated bits from buildbot config here
Added Paths:
-----------
contrib/mpab/deploy_archives.sh
contrib/mpab/do_status.sh
Added: contrib/mpab/deploy_archives.sh
===================================================================
--- contrib/mpab/deploy_archives.sh (rev 0)
+++ contrib/mpab/deploy_archives.sh 2011-06-29 05:18:26 UTC (rev 79893)
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+if [[ -z "$PORTLISTFILE" ]]; then
+ PORTLISTFILE=portlist
+fi
+if [[ -z "$PREFIX" ]]; then
+ PREFIX="../opt/local"
+fi
+# FIXME: configure these
+# download server hostname
+if [[ -z "$DLHOST" ]]; then
+ DLHOST=mparchives.local
+fi
+# path where it keeps archives
+if [[ -z "$DLPATH" ]]; then
+ DLPATH="/archives"
+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 ${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}
+ rm -f ./${aname}.rmd160
+ done
+ fi
+ fi
+done
Property changes on: contrib/mpab/deploy_archives.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: contrib/mpab/do_status.sh
===================================================================
--- contrib/mpab/do_status.sh (rev 0)
+++ contrib/mpab/do_status.sh 2011-06-29 05:18:26 UTC (rev 79893)
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+if [[ -z "$PORTLISTFILE" ]]; then
+ PORTLISTFILE=portlist
+fi
+if [[ -z "$PREFIX" ]]; then
+ PREFIX="../opt/local"
+fi
+if [[ -z "$STATUS_LOG" ]]; then
+ STATUS_LOG=portstatus.log
+fi
+
+
+rm -f $STATUS_LOG
+failed=0
+for portname in `cat $PORTLISTFILE`; do
+ if ls logs-*/success/${portname}.log > /dev/null 2>&1 ; then
+ echo "[OK] ${portname}" >> $STATUS_LOG
+ elif ls logs-*/failure/${portname}.log > /dev/null 2>&1 ; then
+ echo "[FAIL] ${portname}" >> $STATUS_LOG
+ let "failed = failed + 1"
+ # send email to appropriate places
+ portmaintainers=$(${PREFIX}/bin/port info --maintainers --line ${portname} | tr ',' ' ')
+ for maint in $portmaintainers; do
+ if [[ "$maint" != "nomaintainer at macports.org" && "$maint" != "openmaintainer at macports.org" ]]; then
+ # email maintainer
+ echo "not emailing $maint (not set up yet)"
+ fi
+ # also send to some new mailing list?
+ done
+ fi
+done
+exit $failed
Property changes on: contrib/mpab/do_status.sh
___________________________________________________________________
Added: svn:executable
+ *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110628/d8c5c076/attachment.html>
More information about the macports-changes
mailing list