Added: contrib/mpab/deploy_archives.sh (0 => 79893)
--- 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: contrib/mpab/do_status.sh (0 => 79893)
--- 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@macports.org" && "$maint" != "openmaintainer@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
___________________________________________________________________