]> git.sur5r.net Git - bacula/bacula/commitdiff
Parameterize win64 build a bit
authorKern Sibbald <kern@sibbald.com>
Thu, 21 Jan 2010 19:39:23 +0000 (20:39 +0100)
committerKern Sibbald <kern@sibbald.com>
Thu, 21 Jan 2010 19:39:23 +0000 (20:39 +0100)
bacula/src/win32/build-cross-mingw-w64

index 11f2c17b2f8d28a2f6e830cfb134a845274096b6..4a20bdf4c253165ddcfddf06c431d89f6ac3d20c 100755 (executable)
@@ -9,8 +9,20 @@
 HST=x86_64-pc-linux
 TGT=x86_64-pc-mingw32
 RT=mingw-w64
-mkdir -p ../../../cross-tools
-cd ../../../cross-tools
+# Directory where cross-tools directory will be placed
+TOPDIR=../../..
+# Cross tools directory name under TOPDIR
+CROSSTOOLS=cross-tools
+cwd=`pwd`
+
+cd ${TOPDIR}
+# Make TOPDIR absolute
+TOPDIR=`pwd`
+TOPDIR=${DEPKGS:-${TOPDIR}}
+
+mkdir -p ${TOPDIR}/cross-tools
+cd ${TOPDIR}/cross-tools
+echo "Buiding in ${TOPDIR}/cross-tools"
 PF=`pwd`/$RT
 BD=`pwd`/build
 SRC=`pwd`/source