config/scripts/generate_cscopefile.sh
2015-06-30 15:49:18 +02:00

14 lines
397 B
Bash
Executable File

DIR="dalvik device development frameworks hardware system "
TMP=$(mktemp /tmp/XXXXX-cscope.files)
echo "$TMP"
for dir in $DIR;
do
echo "Looking for files in $dir"
find $PWD/$dir -name .git -prune -o -type f \( -iname '*.c' -o -iname '*.cc' -o -iname '*.cpp' -o -iname '*.h' -o -iname '*.hpp' -o -iname "*.mk" -o -iname "*.java" -o -iname "*.aidl" \) >> $TMP
done
cscope -bkq -i $TMP
rm $TMP