Added a simple shell script to find all the headers from a specified
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Apr 2007 03:18:43 +0000 (03:18 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Apr 2007 03:18:43 +0000 (03:18 +0000)
        framework or frameworks that are included by files beneath the working
        directory.

        * Scripts/find-included-framework-headers: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20928 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Scripts/find-included-framework-headers [new file with mode: 0755]

index 02ea35584c1a2172ea5060088a6d5ef63fca13b0..a0a586c0d9bcdacad290db2c6a17b0d1f7c72dc4 100644 (file)
@@ -1,3 +1,11 @@
+2007-04-17  Adam Roben  <aroben@apple.com>
+
+        Added a simple shell script to find all the headers from a specified
+        framework or frameworks that are included by files beneath the working
+        directory.
+
+        * Scripts/find-included-framework-headers: Added.
+
 2007-04-16  Timothy Hatcher  <timothy@apple.com>
 
         * Drosera/debugger.css: hide the borders for iframes
diff --git a/WebKitTools/Scripts/find-included-framework-headers b/WebKitTools/Scripts/find-included-framework-headers
new file mode 100755 (executable)
index 0000000..1aced26
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+for framework in $*; do
+    echo -e "\n$framework\n=================="
+    for ext in cpp h; do
+        find . -name "*.$ext" -exec grep $framework {} ';' | grep include | sed -e 's|.*/\(.*\.h\).*|\1|'
+    done | sort | uniq
+done