webengine/osswebengine/WebKitTools/Scripts/find-included-framework-headers
author Chetan Kapoor <chetank@symbian.org>
Wed, 16 Jun 2010 13:48:17 +0100
branchGCC_SURGE
changeset 75 cd0e9694f2ef
parent 0 dd21522fd290
permissions -rw-r--r--
Bug 2962 - GCC compilation issues in sf/mw/web -- Some Compilation erros fixed

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