#echo VERSION=$VERSION
#exit 0
+echo "Getting started at " `date`
+
# ---------------------------------------------------------------------------
# Make the sources and other basic stuff.
# Untar it on the remote machine, and then run the build script
echo "Unarchiving source file on $OSX_HOST..."
- ssh $OSX_HOST "cd $OSX_SHARED_REMOTE && tar xzf wxPythonSrc-$VERSION.tar.gz && rm wxPythonSrc-$VERSION.tar.gz"
+ ssh root@$OSX_HOST "cd $OSX_SHARED_REMOTE && tar xzf wxPythonSrc-$VERSION.tar.gz && rm wxPythonSrc-$VERSION.tar.gz"
echo "Running build script on $OSX_HOST..."
wxdir=$OSX_SHARED_REMOTE/wxPythonSrc-$VERSION
cmd=$wxdir/wxPython/distrib/all/build-osx
- ssh $OSX_HOST "cd $wxdir && $cmd $wxdir $OSX_SHARED_REMOTE $skipclean $VERSION $PYVER"
+ ssh root@$OSX_HOST "cd $wxdir && $cmd $wxdir $OSX_SHARED_REMOTE $skipclean $VERSION $PYVER"
echo "Fetching the results..."
cp $OSX_SHARED/wxPythonOSX* $STAGING_DIR
- ssh $OSX_HOST "cd $OSX_SHARED_REMOTE && rm wxPythonOSX*"
+ ssh root@$OSX_HOST "cd $OSX_SHARED_REMOTE && rm wxPythonOSX*"
# unmount?
if [ -n "$OSX_UMOUNT" ]; then
# ---------------------------------------------------------------------------
# Final disposition of build results...
+chmod a+r $STAGING_DIR/*
if [ $KIND = dryrun ]; then
# we're done
+ echo "Finished at " `date`
exit 0
fi
if [ $KIND = daily ]; then
- destdir=$UPLOAD_PREVIEW_ROOT/$DAILY
+ 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/*
# only N days worth
# TODO: Send email to wxPython-dev?
+ DATE=`date`
+ TO=wxPython-dev@lists.wxwidgets.org
+
+ cat <<EOF | /usr/sbin/sendmail $TO
+From: R'bot <rbot@wxpython.org>
+To: $TO
+Subject: New test build uploaded
+Date: $DATE
+
+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
+ echo "Finished at " `date`
exit 0
fi
rm $STAGING_DIR/*
rmdir $STAGING_DIR
+ echo "Finished at " `date`
exit 0
fi