]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix typo in qt-console make-win32 script
authorKern Sibbald <kern@sibbald.com>
Sun, 25 Jul 2010 20:12:44 +0000 (22:12 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:54:00 +0000 (16:54 +0200)
bacula/src/qt-console/make-win32

index b75ff1723b87be0e8052bedbbacccccc9aac3fbf..b9be654f279495d5cd679dbfe768619f648af3a0 100755 (executable)
@@ -3,7 +3,7 @@
 #  Used to build the Win32 version of bat
 #
 rm -f debug/bat.exe
-if test -e ../config.h ; then
+if test -f ../config.h ; then
    mv -f ../config.h ../config.h.orig
 fi
 qmake -spec win32 -unix -o Makefile.mingw32 bat.pro.mingw32
@@ -12,7 +12,11 @@ if test -e ../config.h.orig ; then
    mv -f ../config.h.orig ../config.h
 fi
 if test -d ../win32/release32; then
-   cp -f debug/bat.exe ../win32/release32
+   if test -f release/bat.exe; then
+      cp -f release/bat.exe ../win32/release32
+   else
+      cp -f debug/bat.exe ../win32/release32
+   fi 
    cp -f ${DEPKGS}/depkgs-mingw32/lib/qt/QtGui4.dll ../win32/release32
    cp -f ${DEPKGS}/depkgs-mingw32/lib/qt/QtCore4.dll ../win32/release32
    rm -rf ../win32/release32/help