about summary refs log tree commit diff
path: root/Util/preconfig
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 /Util/preconfig
parentc785eb610adb0fb3232c04c9a704a244b6325a7c (diff)
downloadzsh-06d21c58758f922977955cec0ed8d14a90977ce1.tar.gz
zsh-06d21c58758f922977955cec0ed8d14a90977ce1.tar.xz
zsh-06d21c58758f922977955cec0ed8d14a90977ce1.zip
Initial revision
Diffstat (limited to 'Util/preconfig')
-rwxr-xr-xUtil/preconfig14
1 files changed, 14 insertions, 0 deletions
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