$ 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
No comments:
Post a Comment