s4:WAF buildsystem - support out of "source4" directory builds
[samba.git] / buildtools / scripts / configure.waf
index a6367e7314173efbc35d20381b796c521de5a2f4..79a7a35c5dc7db4708aabce9ad07b3e863573fb6 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+PREVPATH=`dirname $0`
 
 WAF=BUILDTOOLS/bin/waf
 
@@ -8,4 +9,6 @@ WAF=BUILDTOOLS/bin/waf
 JOBS=1
 export JOBS
 
+cd BUILDPATH
 $WAF configure $*
+cd $PREVPATH