• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3FILE_EXTENSIONS_TO_SEARCH="cpp h m mm"
4
5for 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
10done
11