From: Jim Meyering Date: Wed, 26 Sep 2001 08:20:38 +0000 (+0000) Subject: exit from only one place: the end X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e513784d8c787bbde5869d1cb5170a840f357d06;p=pspp exit from only one place: the end --- diff --git a/lib/gen-uio b/lib/gen-uio index 02b7b1fdd0..cb655c6981 100755 --- a/lib/gen-uio +++ b/lib/gen-uio @@ -4,7 +4,8 @@ tmp=gen-uio.$$ trap 'status=$?; rm -f $tmp && exit $status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 -cat <<\EOF || exit 1 +fail=0 +cat <<\EOF || fail=1 #ifndef UNLOCKED_IO_H # define UNLOCKED_IO_H 1 @@ -19,7 +20,7 @@ EOF for f in $@; do u=`echo $f|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` - cat <&1; exit 1;; + echo $0: missing case for $f 2>&1; fail=1;; esac - cat <