2 # Ensure that `install -s' doesn't infloop when its parent
3 # process traps CHLD signal.
5 if test "$VERBOSE" = yes; then
11 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
12 trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
13 trap '(exit $?); exit $?' 1 2 13 15
16 mkdir -p $tmp || framework_failure=1
17 cd $tmp || framework_failure=1
19 if test $framework_failure = 1; then
20 echo "$0: failure in testing framework" 1>&2
26 # Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.
28 # ash doesn't support "trap '' CHLD"; it knows only signal numbers.
29 sig=`$pwd/../../src/kill -l CHLD 2>/dev/null` && trap '' $sig
31 # Before 2004-04-21, install would infloop, in the `while (wait...' loop:
32 exec ginstall -s $pwd/../../src/ginstall$EXEEXT .
35 (exit $fail); exit $fail