about summary refs log tree commit diff
path: root/Util/preconfig
blob: 469115a9db4faea0f5ead08e1d9b01b8616918f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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