From 8b4969954ba9641474c5d2f95c8a653083693135 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Tue, 7 Dec 2004 22:41:56 +0000 Subject: [PATCH] - still can't figure out why the last line is not being executed; throw in some more debug --- build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4aca2559..f8f24a75 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ # crontabs to build nightly releases (default). Can also be invoked # manually to build a tagged release (-r) in the current directory. # -# $Id: build.sh,v 1.20 2004/12/01 03:23:48 mlhuang Exp $ +# $Id: build.sh,v 1.21 2004/12/06 21:55:21 mlhuang Exp $ # # Set defaults @@ -90,9 +90,11 @@ fi set -x # XXX Should check out a tagged version of yumgroups.xml +echo "$(date) Getting yumgroups.xml" cvs -d ${CVSROOT} checkout -p alpina/groups/v3_yumgroups.xml > ${BASE}/RPMS/yumgroups.xml # Create package manifest +echo "$(date) Creating package manifest" URLBASE=$(cd ${BASE} && pwd -P) URLBASE="http://build.planet-lab.org/${URLBASE##$HOME/}/SRPMS" ${BASE}/packages.sh -b ${URLBASE} ${BASE}/SRPMS > ${BASE}/SRPMS/packages.xml @@ -108,10 +110,12 @@ fi # Remove old runs if [ -n "$BUILDS" ] ; then + echo "$(date) Removing old runs" echo "cd $ARCHIVE && ls -t | sed -n ${BUILDS}~1p | xargs rm -rf" | ssh $SERVER /bin/bash -s fi # Populate repository +echo "$(date) Populating repository" for RPMS in RPMS SRPMS ; do ssh $SERVER mkdir -p $ARCHIVE/$BASE/$RPMS/ find $BASE/$RPMS/ -type f | xargs -i scp {} $SERVER:$ARCHIVE/$BASE/$RPMS/ @@ -119,8 +123,11 @@ for RPMS in RPMS SRPMS ; do done # Update nightly alpha symlink +echo "$(date) Updating symlink" if [ "$TAG" = "HEAD" ] ; then ssh $SERVER ln -nsf $ARCHIVE/$BASE/RPMS/ $REPOS fi +echo "$(date) $BASE done" + exit 0 -- 2.47.0