File: make-TAGS

package info (click to toggle)
aoeui 1.4-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 440 kB
  • ctags: 574
  • sloc: ansic: 6,005; makefile: 76; sh: 11
file content (12 lines) | stat: -rwxr-xr-x 243 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
if [ ".$1" = . ]
then set .
fi
for path
do find -L $path -type f | egrep '\.(h|c|cc|C)$'
done | xargs ctags -x \
     | tee TAGS.tmp1 \
     | grep '::' \
     | sed 's/[^:]*:://' >TAGS.tmp2
sort TAGS.tmp[12] >TAGS
rm TAGS.tmp[12]