$ cat ~/bin/javatags
#!/bin/sh
workdir=`pwd`
workdir=${workdir/\/c/c:}
echo Work directory: $workdir
if [ ! -d cscope ]
then
echo Creating cscope directory
mkdir cscope
fi
echo Generating ctags
cd $workdir
ctags -R --language-force=java .
echo Generating cscope
cd /
find $workdir -name "*.java" > $workdir/cscope/cscope.files
cd $workdir/cscope
cscope -bq
echo Complete
Showing posts with label java. Show all posts
Showing posts with label java. Show all posts
Tuesday, October 22, 2013
ctag and csope for java
The same script as in this post, but for Java:
Subscribe to:
Posts (Atom)