- still can't figure out why the last line is not being executed; throw
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 7 Dec 2004 22:41:56 +0000 (22:41 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 7 Dec 2004 22:41:56 +0000 (22:41 +0000)
  in some more debug

build.sh

index 4aca255..f8f24a7 100755 (executable)
--- 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