From: Jeroen van Vianen
authorMarc G. Fournier
Sun, 15 Mar 1998 08:33:59 +0000 (08:33 +0000)
committerMarc G. Fournier
Sun, 15 Mar 1998 08:33:59 +0000 (08:33 +0000)
tools.patch patches tools/find_static (use indices to increase
performance) and tools/ccsym (no hardcoded paths).

src/tools/ccsym
src/tools/find_static

index 548d58b3592556fd8f5982bfc54fabb91696e724..130f7bb327a0f20deabc6b2fa92237d9d87b5cfa 100755 (executable)
@@ -1,13 +1,13 @@
 #!/bin/sh
-trap "/bin/rm -f /tmp/$$.*" 0 1 2 3 15
+trap "rm -f /tmp/$$.*" 0 1 2 3 15
 cd /tmp
-/bin/cat >$$.c <
+cat >$$.c <
 extern int foo;
 EOF
 for i in `cc -v -c $$.c 2>&1`
 do
         case "$i" in
-        -D*) echo "$i" | /usr/bin/sed 's/^-D//';;
-        -A*) /bin/test "2.7.2.1" && echo "$i" | /usr/bin/sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
+        -D*) echo "$i" | sed 's/^-D//';;
+        -A*) test "2.7.2.1" && echo "$i" | sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
         esac
 done
index bce75a2bf679c70000a99f1469db0f91c9cc0ece..5951484d71fc242d90b3c2de9cbafb4a5cad744b 100755 (executable)
@@ -27,6 +27,11 @@ echo "
    into    table debug2 
    from    debug;
 
+   create index idebug on debug(scope,func);
+   create index idebug2 on debug2(func,scope);
+   vacuum debug;
+   vacuum debug2;
+
    update  debug2 
    set     scope = '_' 
    from    debug