OSDN Git Service

Prevent _deadcode from showing in ctags and mkid
authorBruce Momjian <bruce@momjian.us>
Mon, 13 Dec 1999 04:54:01 +0000 (04:54 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 13 Dec 1999 04:54:01 +0000 (04:54 +0000)
src/tools/make_ctags
src/tools/make_mkid

index b0b04af..646102d 100755 (executable)
@@ -1,7 +1,9 @@
 #!/bin/sh
 trap "rm -f /tmp/$$" 0 1 2 3 15
 rm -f ./tags
-find `pwd`/ -type f -name '*.[chyl]' -print|xargs ctags -d -t -a -f tags
+find `pwd`/ \( -name _deadcode -a -prune \) -o \
+       -type f -name '*.[chyl]' -print|xargs ctags -d -t -a -f tags
+
 sort tags >/tmp/$$ && mv /tmp/$$ tags
 
 find . -type d -print |while read DIR
index 01ed0f0..153a017 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
-find `pwd`/ -type f -name '*.[chyl]' -print|sed 's;//;/;g' | mkid -S.gen=C -
+find `pwd`/ \( -name _deadcode -a -prune \) -o \
+       -type f -name '*.[chyl]' -print|sed 's;//;/;g' | mkid -S.gen=C -
 
 find . -type d -print |while read DIR
 do