]> granicus.if.org Git - postgresql/blobdiff - src/tools/find_static
Small improvements in comments in async.c.
[postgresql] / src / tools / find_static
index c841e9ab263802676b2b4a658488ef4f54257d47..0643021879f6e3d9c3f2e5603ad24b33826f7d3b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $PostgreSQL: pgsql/src/tools/find_static,v 1.5 2006/07/14 14:59:00 momjian Exp $
+# src/tools/find_static
 
 trap "rm -f /tmp/$$" 0 1 2 3 15
 
@@ -16,8 +16,7 @@ trap "rm -f /tmp/$$" 0 1 2 3 15
 # symbol, then the function name.
 
 find . -name '[a-z]*.o' -type f -print | while read FILE
-do
-       nm $FILE | cut -c10-100 |awk '{printf "%s\t%s\t%s\n", "'"$FILE"'",$1,$2}'
+do     nm $FILE | cut -c17-100 |awk '{printf "%s\t%s\t%s\n", "'"$FILE"'",$1,$2}'
 done >/tmp/$$
 dropdb debug
 createdb debug
@@ -26,8 +25,8 @@ echo "
 
        copy debug from '/tmp/"$$"';
 
-       select  * 
-       into    table debug2 
+       select  *
+       into    table debug2
        from    debug;
 
        create index idebug on debug(scope,func);
@@ -35,8 +34,8 @@ echo "
        vacuum debug;
        vacuum debug2;
 
-       update  debug2 
-       set     scope = '_' 
+       update  debug2
+       set     scope = '_'
        from    debug
        where   debug2.func = debug.func and
                debug2.scope = 'T' and debug.scope = 'U';
@@ -49,4 +48,3 @@ echo "
        where   scope = 'T' and func != 'main'
         order by file, func;
 " |psql debug
-