]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/build-cross-mingw-w64
Fix some trivial errors and implemented the restore of IRIX xattrs.
[bacula/bacula] / 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