From: Kern Sibbald Date: Thu, 21 Jan 2010 19:39:23 +0000 (+0100) Subject: Parameterize win64 build a bit X-Git-Tag: Release-5.0.0~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=40e0128543ef30fa4d33a4c71c39a14d36dafce2;p=bacula%2Fbacula Parameterize win64 build a bit --- diff --git a/bacula/src/win32/build-cross-mingw-w64 b/bacula/src/win32/build-cross-mingw-w64 index 11f2c17b2f..4a20bdf4c2 100755 --- a/bacula/src/win32/build-cross-mingw-w64 +++ b/bacula/src/win32/build-cross-mingw-w64 @@ -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