summaryrefslogtreecommitdiffstats
path: root/WebKitTools/Scripts/find-included-framework-headers
blob: 3e7aaf61c1ec703bd5ae601dbcc78f1d390a4728 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

FILE_EXTENSIONS_TO_SEARCH="cpp h m mm"

for framework in $*; do
    echo -e "\n$framework\n=================="
    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