summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2013-08-14 15:07:37 +1000
committerTim Mayberry <mojofunk@gmail.com>2013-12-07 20:48:19 +1000
commit2970b791411e3c83e617cfc0774d2581bd0e44db (patch)
tree7229231ef685fb828bc11cbfda0bce45ad87f001 /tools
parent12065351e532fba23aaf6c549657e6d293cdfe6a (diff)
Only call define versions script in mingwenv after a build is successful
This stops clean.sh script complaining about a non-existant path
Diffstat (limited to 'tools')
-rwxr-xr-xtools/windows_packaging/mingw-env.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/windows_packaging/mingw-env.sh b/tools/windows_packaging/mingw-env.sh
index 819ea04055..1895cd4040 100755
--- a/tools/windows_packaging/mingw-env.sh
+++ b/tools/windows_packaging/mingw-env.sh
@@ -26,13 +26,13 @@ BUILD_DIR=$BASE/build
BUILD_CACHE_FILE=$BUILD_DIR/c4che/_cache.py
TOOLS_DIR=$BASE/tools/windows_packaging
-. ../define_versions.sh
-
APPNAME=`grep -m 1 '^APPNAME' $BASE/wscript | awk '{print $3}' | sed "s/'//g"`
# These are only relevant after a build
if test -f $BUILD_CACHE_FILE
then
+ . ../define_versions.sh
+
# Figure out the Build Type
if grep -q "DEBUG = True" $BUILD_CACHE_FILE; then
DEBUG=1