Skip to content

Instantly share code, notes, and snippets.

@skyscribe
Last active August 29, 2015 13:56
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 skyscribe/8817579 to your computer and use it in GitHub Desktop.
Save skyscribe/8817579 to your computer and use it in GitHub Desktop.
Generate boost ctag files
find /usr/local/include/boost -type f |egrep -v "boost/(typeof|spirit|phoenix|gil)" > boost-filelist
ctags --c++-kinds=+p --fields=+iaS --extra=+q -f ~/.vim/tagfiles/boost/tags -L boost-filelist
bkup=_tmp
tagFile=~/.vim/tagfiles/boost/tags
tagFileTmp=$tagFile$bkup
ignored=""
tagOut=$tagFile.test
cat $tagFile | sed -n "/detail/\!p" > $tagFileTmp
for name in `find /usr/local/include/boost -maxdepth 1 -type d | awk -F"/" '{print $NF}' `
do
echo -n "$name:"
cat $tagFileTmp | grep -c "boost::$name"
done | sort -n -t":" -k2 -r | head -10 | cut -d":" -f1 |\
while read domain; do
ignored="$ignored|boost::$domain"
done
cat $tagFileTmp | egrep -v "detail$ignored" > $tagOut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment