about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-20 14:01:46 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-20 14:01:46 +0000
commit06d21c58758f922977955cec0ed8d14a90977ce1 (patch)
tree928040362c674fd066668196c1a22be2a7655efd
parentc785eb610adb0fb3232c04c9a704a244b6325a7c (diff)
downloadzsh-06d21c58758f922977955cec0ed8d14a90977ce1.tar.gz
zsh-06d21c58758f922977955cec0ed8d14a90977ce1.tar.xz
zsh-06d21c58758f922977955cec0ed8d14a90977ce1.zip
Initial revision
-rwxr-xr-x.preconfig7
-rwxr-xr-xUtil/preconfig14
2 files changed, 21 insertions, 0 deletions
diff --git a/.preconfig b/.preconfig
new file mode 100755
index 000000000..f9729bd97
--- /dev/null
+++ b/.preconfig
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+set -e
+
+autoconf
+autoheader
+echo > stamp-h.in
diff --git a/Util/preconfig b/Util/preconfig
new file mode 100755
index 000000000..469115a9d
--- /dev/null
+++ b/Util/preconfig
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+find . \( -name '*.*' -prune \) -o \( -name .preconfig -print \) | (
+    while read pre; do
+	cmd=`echo $pre | sed 's,^,cd ,;s,/\([^/]*\)$, \&\& ./\1,'`
+	echo >&2 "$cmd"
+	if ( eval "$cmd" ); then :; else
+	    echo "$0: $pre failed (status $?)"
+	    exit 1
+	fi
+    done
+)
+
+exit 0