From: Bruce Momjian Date: Wed, 10 Jun 2009 03:38:32 +0000 (+0000) Subject: Fix BSD find_typedef logic. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=47dbe7da1902765a70a19bd49874a8451638d692;p=users%2Fsimon%2Fpostgres.git Fix BSD find_typedef logic. --- diff --git a/src/tools/find_typedef b/src/tools/find_typedef index de7688182e..afc69f3d94 100755 --- a/src/tools/find_typedef +++ b/src/tools/find_typedef @@ -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