File: make-TAGS

package info (click to toggle)
aoeui 1.7%2B20160302.git4e5dee9-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 532 kB
  • sloc: ansic: 6,860; makefile: 294; 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]