summaryrefslogtreecommitdiff
path: root/source4/autogen-waf.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-04 18:27:30 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:25 +1000
commit1e35da61455ac1e94b1f64f661e7052113de4dfc (patch)
tree7a689575a0de01aaeb8c669c9df5325d919c807a /source4/autogen-waf.sh
parentc8835f440a7e07f385f5759bae6b4e53c1927e82 (diff)
downloadsamba-1e35da61455ac1e94b1f64f661e7052113de4dfc.tar.gz
samba-1e35da61455ac1e94b1f64f661e7052113de4dfc.tar.bz2
samba-1e35da61455ac1e94b1f64f661e7052113de4dfc.zip
s4-waf: new autogen-waf.sh
this one will work with the tdb, talloc, etc directories
Diffstat (limited to 'source4/autogen-waf.sh')
-rwxr-xr-xsource4/autogen-waf.sh19
1 files changed, 16 insertions, 3 deletions
diff --git a/source4/autogen-waf.sh b/source4/autogen-waf.sh
index 2e4869721c..9cb144afcf 100755
--- a/source4/autogen-waf.sh
+++ b/source4/autogen-waf.sh
@@ -1,9 +1,22 @@
#!/bin/sh
echo "Setting up for waf build"
-ln -sf configure.waf configure
+echo "Looking for the buildtools directory"
+
+d="buildtools"
+while test \! -d $d; do d="../$d"; done
+
+echo "Found buildtools in $d"
+
+echo "Setting up configure"
+rm -f configure
+sed "s|BUILDTOOLS|$d|g" < "$d/scripts/configure.waf" > configure
+chmod +x configure
+
+echo "Setting up makefile"
# this relies on the fact that make looks for 'makefile' before 'Makefile'
-ln -sf Makefile.waf makefile
+rm -f makefile
+sed "s|BUILDTOOLS|$d|g" < "$d/scripts/Makefile.waf" > makefile
-echo "done ... now run ./configure or ./configure.developer"
+echo "done. Now run ./configure or ./configure.developer then make"