File: preconfig

package info (click to toggle)
zsh-beta 4.3.0-dev-1+20050424-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,240 kB
  • ctags: 6,564
  • sloc: ansic: 79,241; sh: 4,874; perl: 748; makefile: 676; awk: 341; sed: 16
file content (14 lines) | stat: -rwxr-xr-x 279 bytes parent folder | download | duplicates (10)
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