config/scripts/generate_cscopefile.sh

15 lines
444 B
Bash
Raw Normal View History

2015-02-27 15:51:51 +01:00
DIR="dalvik device frameworks hardware libnativehelper system "
TMP=$(mktemp /tmp/XXXXX-cscope.files)
echo "$TMP"
for dir in $DIR;
do
echo "Looking for files in $dir"
2015-02-27 15:51:51 +01:00
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" \) | egrep -v "/\.git$" >> $TMP
done
2015-02-27 15:51:51 +01:00
echo "generate cscope"
cscope -bkq -i $TMP
rm $TMP