]>
git.saurik.com Git - wxWidgets.git/blob - distrib/scripts/pre-flight.sh
3 if [ "$VERSION" = "" ]; then
4 echo "Including build-environ.cfg"
5 .
`dirname $0`/build
-environ.cfg
8 # first, grab the latest revision with specified tag
9 if [ ! -d $WX_TEMP_DIR ]; then
13 # just do an update if we started a build but it failed somewhere
14 if [ ! -d $WX_WEB_DIR ]; then
16 echo "Grabbing wxWebSite sources..."
17 svn co https
://svn.wxwidgets.org
/svn
/wxWebSite
/trunk wxWebSite
24 if [ ! -d $WX_SRC_DIR ]; then
26 echo "Grabbing wx CVS with tag $BUILD_TAG"
27 svn co https
://svn.wxwidgets.org
/svn
/wx
/wxWidgets
/trunk
/ wxWidgets
35 # this is where we will store the wxAll tarball we create
36 if [ ! -d $DIST_DIR ]; then
39 echo saving to
$DIST_DIR
41 #re-bake the bakefiles
42 if [ $rebake = "yes" ]; then
43 if [ ! -d $WX_SRC_DIR/build
/bakefiles
]; then
44 mkdir $WX_SRC_DIR/build
/bakefiles
47 cd $WX_SRC_DIR/build
/bakefiles
48 # always rebuild the bakefiles to avoid conflicts with cvs
49 ## better to not use unix2dos on the wxWidgets tree so we don't get the conflicts
50 ##fix this -B gave an option not recognised error (sf bug 1537221)...
52 bakefile_gen
-d ..
/..
/distrib
/scripts
/Bakefiles.release.bkgen
55 # Now generate the mega tarball with everything. We will push this to our build machines.
57 export APPDIR
=$WX_TEMP_DIR/wxWidgets
58 export WXWIN
=$WX_TEMP_DIR/wxWidgets
59 export VERSION
=$BUILD_VERSION
60 export SCRIPTDIR
=${SCRIPTDIR}
61 export DIST_DIR
=${DIST_DIR}
64 rm -rf $APPDIR/deliver
/*
67 tar czf
$DIST_DIR/wxWidgets
-snapshot-$BUILD_VERSION.
tar.gz
$WX_TEMP_DIR
69 cp $SCRIPTDIR/create_archives.sh
$APPDIR/distrib
/scripts
70 chmod +x
$APPDIR/distrib
/scripts
/create_archives.sh
71 $APPDIR/distrib
/scripts
/create_archives.sh
--all
73 echo "Tarballs located at: $DIST_DIR"
75 if [ ! -f $WX_TARBALL ]; then
76 echo "ERROR: wxAll tarball was not created by pre-flight.sh. Build cannot continue."
80 #cp $WX_TARBALL $STAGING_DIR
81 #cp -r $WX_WEB_DIR $STAGING_DIR
83 echo "Pre-flight complete. Ready for takeoff."
86 if [ "$KIND" = "daily" ]; then
87 ##delete old files and then copy new ones, add a symlink
88 find ${FTPDIR}/files
-type f
-name wx\
* -mtime +6 | xargs rm -rf
89 cp $DIST_DIR/wx
* ${FTPDIR}/files
91 rm -f ${FTPDIR}/wx
* ${FTPDIR}/MD5SUM
92 for f
in `find ${FTPDIR}/files -type f -name wx\* -mmin -601` ; do
93 ln -s $f `echo $f | sed -e "s/-${CURDATE}//" | sed -e "s|/files||" `
97 ##get install.txt files etc
98 ##.../docs/plat/install.txt goes to install-plat-2.7.0.txt
99 ## wince has a file down one dir
100 cp ${DOCDIR}/changes.txt
$DIST_DIR/changes
-${BUILD_VERSION}.txt
102 for f
in `find ${DOCDIR} -name install.txt` ; do
103 cp $f $DIST_DIR/install-`echo $f | sed -e "s|${DOCDIR}||g" | sed -e "s|/install.txt||g"`-${BUILD_VERSION}.txt
106 for g
in `find ${DOCDIR} -name readme.txt` ; do
107 cp $g $DIST_DIR/readme
-`echo $g | sed -e "s|${DOCDIR}||g" | sed -e "s|msw/wince|wince|g" | sed -e "s|/readme.txt||g"`-${BUILD_VERSION}.txt
109 # Rename double readme
110 mv $DIST_DIR/readme
-readme.txt
-${BUILD_VERSION}.txt
$DIST_DIR/readme
-${BUILD_VERSION}.txt
113 cp $DIST_DIR/* ${FTPDIR}/
117 md5sum ${FTPDIR}/wx
* > ${FTPDIR}/MD5SUM
119 ## make sure updated at is really last
121 echo svn checkout
done at `date -u` > ${FTPDIR}/updated_at.txt
123 echo "Delivery complete. Flying."