# 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
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