From: Robin Dunn Date: Thu, 28 Oct 2004 20:32:14 +0000 (+0000) Subject: add skipupload flag X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7dc107d60c7a2e7409718a1ed4f76a15f881a205 add skipupload flag git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/distrib/all/build-all b/wxPython/distrib/all/build-all index e6e2d28a0b..c26a85b6e7 100755 --- a/wxPython/distrib/all/build-all +++ b/wxPython/distrib/all/build-all @@ -48,7 +48,7 @@ function usage { echo "build types:" echo " dryrun Do the build, but don't copy anywhere (default)" echo " daily Do a daily build, copy to starship" - echo " release Do a normal release build, copy to starship" + echo " release Do a normal release (cantidate) build, copy to starship" echo "" echo "optional command flags:" echo " 2.2 Build for Python 2.2 (default=off)" @@ -63,6 +63,7 @@ function usage { echo " skiposx Don't do the remote OSX build" echo " skiplinux Don't do the remote Linux build" echo " skipclean Don't do the cleanup step on the remote builds" + echo " skipupload Don't upload the builds to starship" echo "" @@ -90,6 +91,7 @@ skipwin=no skiposx=no skiplinux=no skipclean=no +skipupload=no for flag in $*; do case $flag in @@ -108,6 +110,7 @@ for flag in $*; do skiposx) skiposx=yes ;; skiplinux) skiplinux=yes ;; skipclean) skipclean=yes ;; + skipupload) skipupload=yes ;; help) usage; exit 1 ;; *) echo "Unknown flag \"$flag\"" @@ -327,25 +330,22 @@ if [ $KIND = daily ]; then mkdir -p $destdir cp $STAGING_DIR/* $destdir - destdir=$UPLOAD_DAILY_ROOT/$DAILY - echo "Copying to the starship at $destdir..." - ssh $UPLOAD_HOST "mkdir -p $destdir" - scp $STAGING_DIR/* $UPLOAD_HOST:/$destdir - ssh $UPLOAD_HOST "cd $destdir && ls -al" + if [ skipupload != yes ]; then + destdir=$UPLOAD_DAILY_ROOT/$DAILY + echo "Copying to the starship at $destdir..." + ssh $UPLOAD_HOST "mkdir -p $destdir" + scp $STAGING_DIR/* $UPLOAD_HOST:/$destdir + ssh $UPLOAD_HOST "cd $destdir && ls -al" - echo "Cleaning up staging dir..." - rm $STAGING_DIR/* - rmdir $STAGING_DIR + # TODO: something to remove old builds from starship, keeping + # only N days worth - # TODO: something to remove old builds from starship, keeping - # only N days worth + # Send email to wxPython-dev + DATE=`date` + TO=wxPython-dev@lists.wxwidgets.org - # Send email to wxPython-dev - DATE=`date` - TO=wxPython-dev@lists.wxwidgets.org - - cat < To: $TO Subject: $DAILY test build uploaded @@ -363,6 +363,11 @@ Have fun! R'bot EOF + fi + + echo "Cleaning up staging dir..." + rm $STAGING_DIR/* + rmdir $STAGING_DIR echo "Finished at " `date` exit 0 @@ -376,20 +381,17 @@ if [ $KIND = release ]; then mkdir -p $destdir cp $STAGING_DIR/* $destdir - echo "Copying to the starship..." - destdir=$UPLOAD_PREVIEW_ROOT/$VERSION - ssh $UPLOAD_HOST "mkdir -p $destdir" - scp $STAGING_DIR/* $UPLOAD_HOST:/$destdir + if [ skipupload != yes ]; then + echo "Copying to the starship..." + destdir=$UPLOAD_PREVIEW_ROOT/$VERSION + ssh $UPLOAD_HOST "mkdir -p $destdir" + scp $STAGING_DIR/* $UPLOAD_HOST:/$destdir - echo "Cleaning up staging dir..." - rm $STAGING_DIR/* - rmdir $STAGING_DIR - - # Send email to wxPython-dev - DATE=`date` - TO=wxPython-dev@lists.wxwidgets.org + # Send email to wxPython-dev + DATE=`date` + TO=wxPython-dev@lists.wxwidgets.org - cat < To: $TO Subject: $VERSION release candidate build uploaded @@ -408,6 +410,12 @@ R'bot EOF + fi + + echo "Cleaning up staging dir..." + rm $STAGING_DIR/* + rmdir $STAGING_DIR + echo "Finished at " `date` exit 0 fi