mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
add uniq
This commit is contained in:
parent
b636466107
commit
eacba19d74
1 changed files with 4 additions and 1 deletions
5
bin/9c
5
bin/9c
|
@ -55,11 +55,14 @@ case "$tag" in
|
|||
esac
|
||||
|
||||
# N.B. Must use temp file to avoid pipe; pipe loses status.
|
||||
# The uniq at the end is for gcc's strcmp/etc. built-in nonsense,
|
||||
# which multiplies single errors as a result of its expansion.
|
||||
xtmp=/tmp/9c.$$.$USER.out
|
||||
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" >$xtmp 2>&1
|
||||
status=$?
|
||||
grep -v '__p9l_autolib_' $xtmp |
|
||||
egrep -v ': error: .Each undeclared identifier|: error: for each function it appears|: In function `|: At top level:' |
|
||||
sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g'
|
||||
sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' |
|
||||
uniq
|
||||
rm -f $xtmp $xtmp.status
|
||||
exit $status
|
||||
|
|
Loading…
Reference in a new issue