Skip to content

Commit

Permalink
Re-factoring a bit.
Browse files Browse the repository at this point in the history
git-svn-id: https://ut.svn.beanstalkapp.com/ngfw/work/src@26207 8ebf8b4e-06f3-0310-961f-89f74618be54
  • Loading branch information
sdelafond committed Apr 8, 2010
1 parent 7018187 commit c429e1d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions gtags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ echo "Warning: this file needs to be *sourced*"

export GTAGSLIBPATH=../../hades/rup

updateTags() {
(cd $1 ; /usr/bin/find . -name *.java -a ! -path "*/dist/*" -a ! -path '*/downloads/*' | gtags -i -f -)
}

if [ $# -gt 0 ] ; then
/usr/bin/find . -name *.java -a ! -path "*/dist/*" -a ! -path '*/downloads/*' | gtags -i -f -
(cd $GTAGSLIBPATH ; /usr/bin/find . -name *.java -a ! -path "*/dist/*" -a ! -path '*/downloads/*' | gtags -i -f -)
# FIXME: split GTAGSLIBPATH on '.', and call updateTags on every
# component
updateTags .
updateTags $GTAGSLIBPATH
fi

0 comments on commit c429e1d

Please sign in to comment.