[cscope] update scripts for Android
This commit is contained in:
parent
4f66f6ffc4
commit
7875e8925d
@ -1,13 +1,14 @@
|
|||||||
DIR="dalvik device development frameworks hardware system "
|
DIR="dalvik device frameworks hardware libnativehelper system "
|
||||||
TMP=$(mktemp /tmp/XXXXX-cscope.files)
|
TMP=$(mktemp /tmp/XXXXX-cscope.files)
|
||||||
|
|
||||||
echo "$TMP"
|
echo "$TMP"
|
||||||
for dir in $DIR;
|
for dir in $DIR;
|
||||||
do
|
do
|
||||||
echo "Looking for files in $dir"
|
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
|
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
|
done
|
||||||
|
|
||||||
|
echo "generate cscope"
|
||||||
cscope -bkq -i $TMP
|
cscope -bkq -i $TMP
|
||||||
|
|
||||||
rm $TMP
|
rm $TMP
|
||||||
|
Loading…
Reference in New Issue
Block a user