提交 a638f662 编写于 作者: B Bruce Momjian

Cleanup tmp files for ccsym.

上级 1337751e
#!/bin/sh
/bin/cat >tmp.c <<EOF
trap "/bin/rm -f /tmp/$$.*" 0 1 2 3 15
/bin/cat >$$.c <<EOF
extern int foo;
EOF
for i in `cc -v -c tmp.c 2>&1`
for i in `cc -v -c $$.c 2>&1`
do
case "$i" in
-D*) echo "$i" | /usr/bin/sed 's/^-D//';;
-A*) /bin/test "2.7.2.1" && echo "$i" | /usr/bin/sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
esac
done
/bin/rm -f tmp.*
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册