Add script to generate cscope for Android

This commit is contained in:
Mathieu Maret 2015-01-14 14:29:02 +01:00 committed by Mathieu Maret
parent 71af19c958
commit 71a9364222

13
scripts/generate_cscopefile.sh Executable file
View File

@ -0,0 +1,13 @@
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