aboutsummaryrefslogtreecommitdiff
path: root/bin/9l
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-03-18 18:50:33 +0000
committerrsc <devnull@localhost>2005-03-18 18:50:33 +0000
commit237c30900cf261e31d54ed426ff4b1896e2e3667 (patch)
treec9415049cca7975769fc59663943d03ba26a46a8 /bin/9l
parent4b089276b87abeddce25231c1add5ed3b42aa040 (diff)
downloadplan9port-237c30900cf261e31d54ed426ff4b1896e2e3667.tar.gz
plan9port-237c30900cf261e31d54ed426ff4b1896e2e3667.tar.bz2
plan9port-237c30900cf261e31d54ed426ff4b1896e2e3667.zip
quiet 9l
Diffstat (limited to 'bin/9l')
-rwxr-xr-xbin/9l11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/9l b/bin/9l
index 2d08a470..c89e92a5 100755
--- a/bin/9l
+++ b/bin/9l
@@ -252,10 +252,19 @@ if $verbose
then
echo $ld -L$PLAN9/lib "$@" $libsl $extralibs
fi
-if $ld -L$PLAN9/lib "$@" $libsl $extralibs
+
+xtmp=/tmp/9l.$$.$USER.out
+xxout() {
+ egrep -v ': In function `' $xtmp
+ rm -f $xtmp
+}
+
+if $ld -L$PLAN9/lib "$@" $libsl $extralibs >$xtmp 2>&1
then
+ xxout
exit 0
else
+ xxout
rm -f $target
exit 1
fi