webengine/osswebengine/WebKitTools/Scripts/find-included-framework-headers
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 23:23:58 +0300
branchRCL_3
changeset 95 d96eed154187
parent 0 dd21522fd290
permissions -rw-r--r--
Revision: 201034 Kit: 201035

#!/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