2 _ctagsf="-R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++"
6 _path="/usr/include/$1"
10 ctags $_ctagsf -f $1.tags $_path && mkdir -p $1 && mv $1.tags $1/tags &> /dev/null
14 sed -i "/Generate by vim-omnicppcomplete-stl/d" /etc/vimrc
15 echo "set tags+=/usr/share/vim/omnitags/**1/tags \" Generate by vim-omnicppcomplete-stl " >> /etc/vimrc
16 mkdir -p "/usr/share/vim/omnitags"
17 cd "/usr/share/vim/omnitags"
18 echo "Making tags... "
21 make_tags CPP "/usr/share/vim/cpp_src" # for C++
22 #make_tags GL # for OpenGL
23 #make_tags SDL # for SDL
24 #make_tags Qt # for QT4
25 # You can add more ...
27 # build boost tags, very very slow.
28 # It request a lot of memory (at least 4G)
29 # If there is not enough memory,
30 # system will kill that process.
31 # The tags file is hugh (at least 1G).
34 #make_tags all /usr/include # LOL, Don't do this, I'm serious.
45 sed -i "/Generate by vim-omnicppcomplete-stl/d" /etc/vimrc
46 rm "/usr/share/vim/omnitags/" -rf