files as well.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20929
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-04-17 Adam Roben <aroben@apple.com>
+
+ * Scripts/find-included-framework-headers: Search Obj-C and Obj-C++
+ files as well.
+
2007-04-17 Adam Roben <aroben@apple.com>
Added a simple shell script to find all the headers from a specified
#!/bin/sh
+FILE_EXTENSIONS_TO_SEARCH="cpp h m mm"
+
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|'
+ for ext in ${FILE_EXTENSIONS_TO_SEARCH}; do
+ find . -name "*.$ext" -exec grep $framework {} ';' | grep '\(include\|import\)' | sed -e 's|.*/\(.*\.h\).*|\1|'
done | sort | uniq
done