]> git.saurik.com Git - wxWidgets.git/blame - distrib/scripts/pre-flight.sh
Added missing makefile
[wxWidgets.git] / distrib / scripts / pre-flight.sh
CommitLineData
03a2668f
KO
1#!/bin/sh
2
3# cleanup after old build files
4#if [ -d $WX_TEMP_DIR ]; then
5# rm -rf $WX_TEMP_DIR
6#fi
7
8START_DIR="$PWD"
9WX_WEB_DIR=$WX_TEMP_DIR/wxWebSite
10WX_SRC_DIR=$WX_TEMP_DIR/wxWidgets
11
12# first, grab the latest revision with specified tag
13if [ ! -d $WX_TEMP_DIR ]; then
14 mkdir $WX_TEMP_DIR
15fi
16
17cd $WX_TEMP_DIR
18
19# just do an update if we started a build but it failed somewhere
20if [ ! -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
24else
25 cd $WX_WEB_DIR
26 cvs update -d
27fi
28
29if [ ! -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
33else
34 cd $WX_SRC_DIR
35 cvs update -d
36fi
37
38# this is where we will store the wxAll tarball we create
39if [ ! -d $DISTDIR ]; then
40 mkdir $DISTDIR
41fi
42
43#re-bake the bakefiles
44if [ $rebake = "yes" ]; then
45 cd $WX_SRC_DIR/build/bakefiles
da001833 46 bakefile_gen -d ../../distrib/scripts/Bakefiles.release.bkgen
a269ba6e
WS
47 bakefile_gen -f watcom -d ../mgl/Bakefiles.mgl.bkgen -b wx.bkl
48 bakefile_gen -f watcom -d ../os2/Bakefiles.os2.bkgen -b wx.bkl
03a2668f
KO
49fi
50
51cd $WX_SRC_DIR
52if [ ! -d $WX_SRC_DIR/deliver ]; then
53 mkdir $WX_SRC_DIR/deliver
54fi
55
c877c0c3 56# Now generate the mega tarball with everything. We will push this to our build machines.
03a2668f
KO
57
58cd $WX_TEMP_DIR
59WX_TARBALL=$WX_TEMP_DIR/wxWidgets-$BUILD_VERSION.tar.gz
60tar cvzf $WX_TARBALL wxWidgets
61
62echo "Tarball located at: $WX_TARBALL"
63
64if [ ! -f $WX_TARBALL ]; then
65 echo "ERROR: wxAll tarball was not created by pre-flight.sh. Build cannot continue."
66 exit 1
67else
68 cd $START_DIR
69 cp $WX_TARBALL $STAGING_DIR
70 cp -r $WX_WEB_DIR $STAGING_DIR
71
03a2668f
KO
72 echo "Pre-flight complete. Ready for takeoff."
73fi