Fixed upload location, test sending an email when successfully finished

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-06-17 05:49:00 +00:00
parent 33b7017158
commit 7940844666

View File

@@ -320,6 +320,7 @@ fi
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Final disposition of build results... # Final disposition of build results...
chmod a+r $STAGING_DIR/*
if [ $KIND = dryrun ]; then if [ $KIND = dryrun ]; then
# we're done # we're done
@@ -329,10 +330,12 @@ fi
if [ $KIND = daily ]; then if [ $KIND = daily ]; then
destdir=$UPLOAD_PREVIEW_ROOT/$DAILY destdir=$UPLOAD_DAILY_ROOT/$DAILY
echo "Copying to the starship at $destdir..." echo "Copying to the starship at $destdir..."
ssh $UPLOAD_HOST "mkdir -p $destdir" ssh $UPLOAD_HOST "mkdir -p $destdir"
scp $STAGING_DIR/* $UPLOAD_HOST:/$destdir scp $STAGING_DIR/* $UPLOAD_HOST:/$destdir
ssh $UPLOAD_HOST "cd $destdir && ls -al"
echo "Cleaning up staging dir..." echo "Cleaning up staging dir..."
rm $STAGING_DIR/* rm $STAGING_DIR/*
@@ -342,6 +345,18 @@ if [ $KIND = daily ]; then
# only N days worth # only N days worth
# TODO: Send email to wxPython-dev? # TODO: Send email to wxPython-dev?
cat <<EOF | mail -s "New test build uploaded" robin@alldunn.com
Hi,
A new test build of wxPython has been uploaded to starship.
Version: $VERSION
Pythons: $PYVER
URL: http://starship.python.net/crew/robind/wxPython/daily/$DAILY
Have fun!
R'bot
EOF
exit 0 exit 0
fi fi