Debian Codegraph @

make-TAGS

raw
1 #!/bin/bash
2 if [ ".$1" = . ]
3 then set .
4 fi
5 for path
6 do find -L $path -type f | egrep '\.(h|c|cc|C)$'
7 done | xargs ctags -x \
8 | tee TAGS.tmp1 \
9 | grep '::' \
10 | sed 's/[^:]*:://' >TAGS.tmp2
11 sort TAGS.tmp[12] >TAGS
12 rm TAGS.tmp[12]