s4-waf: autogen-waf.sh for the standalone library builds
authorAndrew Tridgell <tridge@samba.org>
Sun, 4 Apr 2010 08:31:54 +0000 (18:31 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:25 +0000 (20:27 +1000)
lib/replace/autogen-waf.sh [new file with mode: 0755]
lib/talloc/autogen-waf.sh [new file with mode: 0755]
lib/tdb/autogen-waf.sh [new file with mode: 0755]
lib/tevent/autogen-waf.sh [new file with mode: 0755]
source4/lib/ldb/autogen-waf.sh [new file with mode: 0755]

diff --git a/lib/replace/autogen-waf.sh b/lib/replace/autogen-waf.sh
new file mode 100755 (executable)
index 0000000..9cb144a
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+echo "Setting up for waf build"
+
+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'
+rm -f makefile
+sed "s|BUILDTOOLS|$d|g" < "$d/scripts/Makefile.waf" > makefile
+
+echo "done. Now run ./configure or ./configure.developer then make"
diff --git a/lib/talloc/autogen-waf.sh b/lib/talloc/autogen-waf.sh
new file mode 100755 (executable)
index 0000000..9cb144a
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+echo "Setting up for waf build"
+
+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'
+rm -f makefile
+sed "s|BUILDTOOLS|$d|g" < "$d/scripts/Makefile.waf" > makefile
+
+echo "done. Now run ./configure or ./configure.developer then make"
diff --git a/lib/tdb/autogen-waf.sh b/lib/tdb/autogen-waf.sh
new file mode 100755 (executable)
index 0000000..9cb144a
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+echo "Setting up for waf build"
+
+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'
+rm -f makefile
+sed "s|BUILDTOOLS|$d|g" < "$d/scripts/Makefile.waf" > makefile
+
+echo "done. Now run ./configure or ./configure.developer then make"
diff --git a/lib/tevent/autogen-waf.sh b/lib/tevent/autogen-waf.sh
new file mode 100755 (executable)
index 0000000..9cb144a
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+echo "Setting up for waf build"
+
+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'
+rm -f makefile
+sed "s|BUILDTOOLS|$d|g" < "$d/scripts/Makefile.waf" > makefile
+
+echo "done. Now run ./configure or ./configure.developer then make"
diff --git a/source4/lib/ldb/autogen-waf.sh b/source4/lib/ldb/autogen-waf.sh
new file mode 100755 (executable)
index 0000000..9cb144a
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+echo "Setting up for waf build"
+
+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'
+rm -f makefile
+sed "s|BUILDTOOLS|$d|g" < "$d/scripts/Makefile.waf" > makefile
+
+echo "done. Now run ./configure or ./configure.developer then make"