3 # cleanup after old build files
4 #if [ -d $WX_TEMP_DIR ]; then
9 WX_WEB_DIR
=$WX_TEMP_DIR/wxWebSite
10 WX_SRC_DIR
=$WX_TEMP_DIR/wxWidgets
12 # first, grab the latest revision with specified tag
13 if [ ! -d $WX_TEMP_DIR ]; then
19 # just do an update if we started a build but it failed somewhere
20 if [ ! -d $WX_WEB_DIR ]; then
21 cvs
-d:pserver
:anoncvs
:anoncvs@cvs.wxwidgets.org
:/pack
/cvsroots
/wxwidgets login
22 echo "Grabbing wxWebSite sources..."
23 cvs
-d:pserver
:anoncvs@cvs.wxwidgets.org
:/pack
/cvsroots
/wxwidgets checkout wxWebSite
29 if [ ! -d $WX_SRC_DIR ]; then
30 cvs
-d:pserver
:anoncvs
:anoncvs@cvs.wxwidgets.org
:/pack
/cvsroots
/wxwidgets login
31 echo "Grabbing wx CVS with tag $BUILD_TAG"
32 cvs
-d:pserver
:anoncvs@cvs.wxwidgets.org
:/pack
/cvsroots
/wxwidgets checkout
-r $BUILD_TAG wxWidgets
38 # this is where we will store the wxAll tarball we create
39 if [ ! -d $DISTDIR ]; then
43 #re-bake the bakefiles
44 if [ $rebake = "yes" ]; then
45 cd $WX_SRC_DIR/build
/bakefiles
50 if [ ! -d $WX_SRC_DIR/deliver
]; then
51 mkdir $WX_SRC_DIR/deliver
54 # Now generate the mega tarball with everything. We will push this to our build machines.
57 WX_TARBALL
=$WX_TEMP_DIR/wxWidgets
-$BUILD_VERSION.
tar.gz
58 tar cvzf
$WX_TARBALL wxWidgets
60 echo "Tarball located at: $WX_TARBALL"
62 if [ ! -f $WX_TARBALL ]; then
63 echo "ERROR: wxAll tarball was not created by pre-flight.sh. Build cannot continue."
67 cp $WX_TARBALL $STAGING_DIR
68 cp -r $WX_WEB_DIR $STAGING_DIR
70 echo "Pre-flight complete. Ready for takeoff."