2006-04-06 03:18:34 +00:00
|
|
|
# Assumed to be running in the root of a working copy (eg trunk, tags/1.64, etc)
|
|
|
|
# so this script has to be run like: tools/mkwinsnapshotinst.sh
|
|
|
|
|
2006-04-12 10:22:49 +00:00
|
|
|
svn up
|
2006-04-06 03:18:34 +00:00
|
|
|
|
|
|
|
export SRC="/c/Program Files/Oolite"
|
|
|
|
export DST=$GNUSTEP_LOCAL_ROOT/oolite/tmp
|
2010-04-28 09:37:38 +00:00
|
|
|
export VER=`awk -- '/SoftwareVersion/ { print $2 }' installers/autopackage/default.x86.apspec`
|
2006-04-06 03:18:34 +00:00
|
|
|
export SVNREV=`svn info . | awk -- '/Revision:/ { print $2 }'`
|
|
|
|
echo building: $VER from svn revision $SVNREV
|
|
|
|
|
|
|
|
if [ -d $DST ]; then
|
|
|
|
echo "removing old setup files"
|
|
|
|
rm -rf $DST
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir $DST
|
|
|
|
mkdir $DST/oolite.app
|
|
|
|
mkdir $DST/AddOns
|
|
|
|
|
|
|
|
echo "making Oolite"
|
2006-04-12 10:22:49 +00:00
|
|
|
make clean
|
2008-10-31 20:45:09 +00:00
|
|
|
make debug=no
|
2006-04-06 03:18:34 +00:00
|
|
|
|
|
|
|
echo "copying new build to setup folder"
|
|
|
|
cp -r oolite.app/* $DST/oolite.app
|
|
|
|
rm $DST/oolite.app/oolite.exe.a
|
|
|
|
find $DST -type d -name '.svn' -exec rm -rf {} \;
|
|
|
|
cp deps/Windows-x86-deps/DLLs/* $DST/oolite.app
|
|
|
|
|
|
|
|
echo "making installer"
|
|
|
|
cd installers/win32
|
|
|
|
|
2007-11-24 18:50:35 +00:00
|
|
|
echo Oolite v$VER, snapshot build of svn revision $SVNREV \(`date -I`\) >$DST/Oolite_Readme.txt
|
2006-04-06 03:18:34 +00:00
|
|
|
cat Oolite_Readme.txt >>$DST/Oolite_Readme.txt
|
2009-09-08 17:34:15 +00:00
|
|
|
cp ../../Doc/OoliteRS.pdf $DST
|
2006-04-06 03:18:34 +00:00
|
|
|
|
2007-11-24 18:50:35 +00:00
|
|
|
"/c/Program Files/NSIS/makensis" OoliteSnapshot_ModernUI.nsi
|