aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2009-06-10 03:38:32 +0000
committerBruce Momjian <bruce@momjian.us>2009-06-10 03:38:32 +0000
commitf371fda397c68bf15e091862a76a24795e42462a (patch)
tree6ac97a794afc05e95e4600e06f7457b06c1d48a1
parent6c4b3f5f8c8d9b7dc0ac7012b4480b6103e37264 (diff)
downloadpostgresql-f371fda397c68bf15e091862a76a24795e42462a.tar.gz
postgresql-f371fda397c68bf15e091862a76a24795e42462a.zip
Fix BSD find_typedef logic.
-rwxr-xr-xsrc/tools/find_typedef4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/find_typedef b/src/tools/find_typedef
index 33e7fc677dc..cd7fe886cb9 100755
--- a/src/tools/find_typedef
+++ b/src/tools/find_typedef
@@ -1,6 +1,6 @@
#!/bin/sh
-# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.11 2008/03/18 23:23:08 momjian Exp $
+# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.12 2009/06/10 03:38:32 momjian Exp $
# This script attempts to find all typedef's in the postgres binaries
# by using 'nm' to report all typedef debugging symbols.
@@ -49,7 +49,7 @@ do # if objdump -W is recognized, only one line of error should appear
awk ' $2 == "DW_AT_name" {print $NF}'
else # BSD/OS
objdump --stabs "$DIR"/* |
- awk ' $2 == "LSYM" && $7 ~ /:[tT]/ {sub(":.*", "", $7); print $7}'
+ awk ' $2 == "LSYM" && $7 ~ /:t/ {sub(":.*", "", $7); print $7}'
fi
done |
grep -v ' ' | # some typedefs have spaces, remove them