s4-build: remove any 'makefile' that may have been left by the waf build
[Samba/gebeck_regimport.git] / source4 / autogen-waf.sh
blob9cb144afcf475025e8791c774a558503e3b2bc10
1 #!/bin/sh
3 echo "Setting up for waf build"
5 echo "Looking for the buildtools directory"
7 d="buildtools"
8 while test \! -d $d; do d="../$d"; done
10 echo "Found buildtools in $d"
12 echo "Setting up configure"
13 rm -f configure
14 sed "s|BUILDTOOLS|$d|g" < "$d/scripts/configure.waf" > configure
15 chmod +x configure
17 echo "Setting up makefile"
18 # this relies on the fact that make looks for 'makefile' before 'Makefile'
19 rm -f makefile
20 sed "s|BUILDTOOLS|$d|g" < "$d/scripts/Makefile.waf" > makefile
22 echo "done. Now run ./configure or ./configure.developer then make"