From 3dec07cba072f0555256d18fa07d5257cdcbd0f2 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 25 Jul 2010 22:12:44 +0200 Subject: [PATCH] Fix typo in qt-console make-win32 script --- bacula/src/qt-console/make-win32 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5