From 5b987e87706777236d437909befe1cd4ee029ea2 Mon Sep 17 00:00:00 2001 From: plagman Date: Tue, 19 Oct 2010 04:39:54 +0000 Subject: [PATCH] Package debug binaries in synthesis. git-svn-id: https://svn.eduke32.com/eduke32@1714 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/synthesis.sh | 42 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/polymer/synthesis.sh b/polymer/synthesis.sh index b3c0cd11b..5cd9d0529 100755 --- a/polymer/synthesis.sh +++ b/polymer/synthesis.sh @@ -10,7 +10,7 @@ clean=veryclean # the following file paths are relative to $source targets=( eduke32.exe mapster32.exe ) -bin_packaged=( eduke32.exe mapster32.exe SEHELP.HLP STHELP.HLP names.h buildlic.txt GNU.TXT m32help.hlp nedmalloc.dll samples/* ) +bin_packaged=( eduke32.exe eduke32.debug.exe mapster32.exe mapster32.debug.exe SEHELP.HLP STHELP.HLP names.h buildlic.txt GNU.TXT m32help.hlp nedmalloc.dll samples/* ) not_src_packaged=( psd source/jaudiolib/third-party/vorbis.framework/Versions/A/vorbis Apple ) # group that owns the resulting packages @@ -64,13 +64,19 @@ fi if [ $dobuild ] then echo "Launching a build..." - + cd $top/$source - - # clean the tree and build - echo "${make[@]}" $clean all - "${make[@]}" $clean all - + + # remove possible old debug binaries + echo rm eduke32.debug.exe + rm eduke32.debug.exe + echo rm mapster32.debug.exe + rm mapster32.debug.exe + + # clean the tree and build debug first + echo "${make[@]}" RELEASE=0 $clean all + "${make[@]}" RELEASE=0 $clean all + # make sure all the targets were produced for i in "${targets[@]}"; do if [ ! -e $i ] @@ -80,7 +86,27 @@ then exit fi done - + + # move the debug binaries out of the way + echo mv eduke32.exe eduke32.debug.exe + mv eduke32.exe eduke32.debug.exe + echo mv mapster32.exe mapster32.debug.exe + mv mapster32.exe mapster32.debug.exe + + # clean the tree and build release + echo "${make[@]}" $clean all + "${make[@]}" $clean all + + # make sure all the targets were produced + for i in "${targets[@]}"; do + if [ ! -e $i ] + then + echo "Build failed! Bailing out..." + rm -r $lockfile + exit + fi + done + # get the date in the YYYYMMDD format (ex: 20091001) date=`date +%Y%m%d`