mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
better status handling for sun
This commit is contained in:
parent
0dfd6525a6
commit
d756dc5e15
1 changed files with 5 additions and 14 deletions
17
bin/9c
17
bin/9c
|
@ -55,18 +55,9 @@ esac
|
||||||
|
|
||||||
# N.B. Must use temp file to avoid pipe; pipe loses status.
|
# N.B. Must use temp file to avoid pipe; pipe loses status.
|
||||||
xtmp=/tmp/9c.$$.$USER.out
|
xtmp=/tmp/9c.$$.$USER.out
|
||||||
status=x
|
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" >$xtmp 2>&1
|
||||||
case "$tag" in
|
|
||||||
*SunOS*-cc)
|
|
||||||
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>&1 |
|
|
||||||
/bin/sed 's/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' 1>&2
|
|
||||||
status=$?
|
status=$?
|
||||||
;;
|
grep -v '__p9l_autolib_' $xtmp |
|
||||||
*)
|
sed 's/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g'
|
||||||
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@"
|
rm -f $xtmp $xtmp.status
|
||||||
status=$?
|
|
||||||
;;
|
|
||||||
esac >$xtmp 2>&1
|
|
||||||
grep -v '__p9l_autolib_' $xtmp
|
|
||||||
rm -f $xtmp
|
|
||||||
exit $status
|
exit $status
|
||||||
|
|
Loading…
Reference in a new issue