]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - tools/checkglobals
Import CUPS v1.7.1
[thirdparty/cups.git] / tools / checkglobals
diff --git a/tools/checkglobals b/tools/checkglobals
deleted file mode 100755 (executable)
index 4d15387..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-#
-# Check for global symbols that don't need to be made global...
-#
-
-for file in *.o; do
-       functions=""
-
-       for function in `nm -g $file | grep "T " | awk '{print $3}'`; do
-               found=""
-               for file2 in *.o; do
-                       if test "$file" = "$file2"; then
-                               continue;
-                       fi
-
-                       found=`nm -g $file2 | grep $function`
-                       if test "$found" != ""; then
-                               break;
-                       fi
-               done
-
-               if test -z "$found"; then
-                       functions="$functions $function"
-               fi
-       done
-
-       if test -z "$functions"; then
-               echo "$file: OK"
-       else
-               echo "$file: $functions"
-       fi
-done