|
1 | 1 | #!/bin/sh |
2 | 2 |
|
3 | | -# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.9 2008/03/1822:45:11 momjian Exp $ |
| 3 | +# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.10 2008/03/1823:04:34 momjian Exp $ |
4 | 4 |
|
5 | 5 | # This script attempts to find all typedef's in the postgres binaries |
6 | 6 | # by using 'nm' to report all typedef debugging symbols. |
@@ -36,7 +36,7 @@ thenecho "Usage: $0 postgres_binary_directory [...]" 1>&2 |
36 | 36 | fi |
37 | 37 |
|
38 | 38 | for DIR |
39 | | -do |
| 39 | +do# if objdump -W is recognized, only one line of error should appear |
40 | 40 | if [`objdump -W2>&1| wc -l`-eq 1 ] |
41 | 41 | then# Linux |
42 | 42 | # unfortunately the Linux version doesn't show unreferenced typedefs |
|