mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
remove target on failure (sun)
This commit is contained in:
parent
39dbe6e72b
commit
724b43e60e
1 changed files with 12 additions and 1 deletions
13
bin/9l
13
bin/9l
|
@ -15,6 +15,12 @@ then
|
|||
verbose=true
|
||||
fi
|
||||
|
||||
target=a.out
|
||||
if [ "x$1" = "x-o" ]
|
||||
then
|
||||
target=$2
|
||||
fi
|
||||
|
||||
if $doautolib
|
||||
then
|
||||
ofiles=""
|
||||
|
@ -188,4 +194,9 @@ if $verbose
|
|||
then
|
||||
echo $ld -L$PLAN9/lib "$@" $libsl $extralibs
|
||||
fi
|
||||
exec $ld -L$PLAN9/lib "$@" $libsl $extralibs
|
||||
if ! $ld -L$PLAN9/lib "$@" $libsl $extralibs
|
||||
do
|
||||
rm -f $target
|
||||
exit 1
|
||||
done
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue