make tags cscope

make ARCH=arm tags && make ARCH=arm cscope

=====================================================================================================

#!/bin/bash


PWD=`pwd`
BASENAME=`basename $PWD`




#if [ ${BASENAME%-*} == 'linux' ]; then
#echo "aaaaaaaaaa"
#fi


if [[ $BASENAME == 'kernel' ]] || [[ ${BASENAME%-*} == 'linux' ]]; then
make cscope ARCH=arm && make tags ARCH=arm
else
ctags -R --extra=+f --c-kinds=+px
fi

你可能感兴趣的:(make tags cscope)