# build environment settings. If you want to make considerable changes, then
# you should create your own settings file and specify that to create-release.sh.
-# host name of the machine to use for windows builds
-WIN_HOST=192.168.1.104
-
-# Where is the build dir from the remote machine's perspective?
-WIN_BUILD=/cygdrive/c/wx2dev
-
-LINUX_HOST=192.168.1.105
-
-LINUX_BUILD=~/wx2dev
-
-MAC_HOST=192.168.1.103
-
-MAC_BUILD=~/wx2dev
# the local spot that we put everything when done, before possibly copying
# to remote hosts
# directory to store the wx tree we pull from CVS
WX_TEMP_DIR=/tmp/wx-temp
+CURDATE=`date -I`
+
# build info
-BUILD_VERSION=2.7.0
+BUILD_VERSION=2.7.0-rc
BUILD_TAG=HEAD
-KIND=daily
-
-### Windows defines ###
-
-# so we can setup the Windows dev environment if it is not already done
-MSVS7_DIR="C:/Program Files/Microsoft Visual Studio 2003"
-NET_FrameworkDir="C:/Windows/Microsoft.NET/Framework"
-MSVS6_DIR="C:/Program Files/Microsoft Visual Studio"
-MSPSDK_DIR="C:/Program Files/Microsoft Platform SDK"
-
-### End Windows defines ###
+if [ "$KIND" = "release" ]; then
+ FTPDIR=/home/ftp/pub/${BUILD_VERSION}
+else
+ KIND=daily
+ BUILD_VERSION=${CURDATE}
+ FTPDIR=/home/ftp/pub/CVS_HEAD/v2
+fi
+echo "Building for ${BUILD_VERSION}"
+
# Default build settings
skipwin=no
skipmac=no
rebake=yes
# If building is successful, delete temp files?
-delete_temps=no
\ No newline at end of file
+delete_temps=no
+
START_DIR="$PWD"
WX_WEB_DIR=$WX_TEMP_DIR/wxWebSite
WX_SRC_DIR=$WX_TEMP_DIR/wxWidgets
+FTPDIR=/home/ftp/pub/CVS_HEAD/v2
+CURDATE=`date -I`
# first, grab the latest revision with specified tag
if [ ! -d $WX_TEMP_DIR ]; then
$APPDIR/distrib/scripts/create_archives.sh --all
# copy all the archives we created to the master machine's deliver directory
+rm -rf $START_DIR/$DIST_DIR/*
cp $APPDIR/deliver/*.zip $START_DIR/$DIST_DIR
cp $APPDIR/deliver/*.tar.gz $START_DIR/$DIST_DIR
cp $APPDIR/deliver/*.tar.bz2 $START_DIR/$DIST_DIR
echo "Pre-flight complete. Ready for takeoff."
fi
+
+if [ "$KIND" = "daily" ]; then
+ ##delete old files and then copy new ones, add a symlink
+ find ${FTPDIR}/files -type f -name wx\* -mtime +6 | xargs rm -rf
+ cp $START_DIR/$DIST_DIR/wx* ${FTPDIR}/files
+
+ rm -f ${FTPDIR}/wx* ${FTPDIR}/MD5SUM
+ for f in `find ${FTPDIR}/files -type f -name wx\* -mmin -601` ; do
+ ln -s $f `echo $f | sed -e "s/-${CURDATE}//" | sed -e "s|/files||" `
+ done
+else
+ ## not a daily build
+ mkdir ${FTPDIR}/
+ cp $START_DIR/$DIST_DIR/wx* ${FTPDIR}/
+fi
+
+md5sum ${FTPDIR}/wx* > ${FTPDIR}/MD5SUM
+
+## make sure updated at is really last
+sleep 10
+echo cvs checkout done at date -u > ${FTPDIR}/updated_at.txt
+
+echo "Delivery complete. Flying."