When removing an item which is event-insensitive, there is no need to repick the...
[ardour.git] / tools / windows_packaging / mingw-env.sh
old mode 100644 (file)
new mode 100755 (executable)
index 37a5758..983e6d0
@@ -27,17 +27,17 @@ BUILD_CACHE_FILE=$BUILD_DIR/c4che/_cache.py
 TOOLS_DIR=$BASE/tools/windows_packaging
 
 APPNAME=`grep -m 1 '^APPNAME' $BASE/wscript | awk '{print $3}' | sed "s/'//g"`
-VERSION=`grep -m 1 '^VERSION' $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
-               PACKAGE_DIR="$APPNAME-$VERSION-win32-dbg"
+       if [ x$DEBUG = xT ]; then
+               PACKAGE_DIR="$APPNAME-${release_version}-win32-dbg"
        else
-               PACKAGE_DIR="$APPNAME-$VERSION-win32"
+               PACKAGE_DIR="$APPNAME-${release_version}-win32"
        fi
 
        if grep -q "BUILD_TESTS = True" $BUILD_CACHE_FILE; then
@@ -46,6 +46,3 @@ then
 
        ARDOUR_DATA_DIR=$PACKAGE_DIR/share/ardour3
 fi
-
-# put this somewhere better...
-VIRT_IMAGE_PATH=$HOME/virt-images/winxp.raw