Skip to content

Instantly share code, notes, and snippets.

@suzuki
Created October 29, 2014 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suzuki/749ea01da089e803ee9c to your computer and use it in GitHub Desktop.
Save suzuki/749ea01da089e803ee9c to your computer and use it in GitHub Desktop.
#!/bin/sh
HOME="/home/suzuki"
WORK="$HOME/work"
GTAGS="/usr/bin/gtags"
TARGETS="$WORK/project-a
$WORK/project-b
$WORK/project-c
"
for T in $TARGETS
do
cd $T
rm -f {GPATH,GRTAGS,GSYMS,GPATH}
$GTAGS --gtagsconf=$T/gtags.conf --quiet
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment