repo.or.cz
/
PostgreSQL.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix a few errors in comments. Patch by Fujii Masao, plus the one in
[PostgreSQL.git]
/
src
/
tools
/
ccsym
blob
a0c7972c9665af32a6085a2ae138665c41c69bcd
1
#!/bin/sh
2
3
# $PostgreSQL$
4
5
trap
"rm -f /tmp/$$.*"
0 1 2 3 15
6
cd
/
tmp
7
cat
>
$$.c
<<EOF
8
extern int foo;
9
EOF
10
for
i
in
`cc -v -c $$.c 2>&1`
11
do
12
case
"
$i
"
in
13
-D
*)
echo
"
$i
"
|
sed
's/^-D//'
;;
14
-A
*)
echo
"
$i
"
|
sed
's/^-A\(.*\)(\(.*\))/\1=\2/'
;;
15
esac
16
done