Home | History | Annotate | Download | only in Scripts
      1 #!/bin/sh
      2 
      3 FILE_EXTENSIONS_TO_SEARCH="cpp h m mm"
      4 
      5 for framework in $*; do
      6     echo -e "\n$framework\n=================="
      7     for ext in ${FILE_EXTENSIONS_TO_SEARCH}; do
      8         find . -name "*.$ext" -exec grep $framework {} ';' | grep '\(include\|import\)' | sed -e 's|.*/\(.*\.h\).*|\1|'
      9     done | sort | uniq
     10 done
     11