An easy way to run all the commands in prepare-source.mak.
authorWayne Davison <wayned@samba.org>
Mon, 6 Feb 2006 04:08:14 +0000 (04:08 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 6 Feb 2006 04:08:14 +0000 (04:08 +0000)
prepare-source [new file with mode: 0755]

diff --git a/prepare-source b/prepare-source
new file mode 100755 (executable)
index 0000000..0457179
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Use autoconf, autoheader, yodl, etc. to ready the generated files
+# in the release.  This is typically used after applying a diff from
+# "patches" directory in CVS.
+#
+# NOTE:  if you use a diff from the "patches" directory in a release
+# tar as of 2.6.7, this is not needed (but doesn't hurt anything).
+dir=`dirname $0`
+if test x"$dir" = x -o x"$dir" = x.; then
+    make -f prepare-source.mak
+else
+    make -C "$dir" -f prepare-source.mak
+fi