From: Kern Sibbald Date: Sun, 25 Jul 2010 20:12:44 +0000 (+0200) Subject: Fix typo in qt-console make-win32 script X-Git-Tag: Release-5.0.3~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=73d46be3a03f7ed8769adcf1932ff12893e7769a;p=bacula%2Fbacula Fix typo in qt-console make-win32 script --- diff --git a/bacula/src/qt-console/make-win32 b/bacula/src/qt-console/make-win32 index b75ff1723b..b9be654f27 100755 --- a/bacula/src/qt-console/make-win32 +++ b/bacula/src/qt-console/make-win32 @@ -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