Revision: 79962 http://trac.macports.org/changeset/79962 Author: jmr@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
participants (1)
-
jmr@macports.org