aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-06-25 22:00:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-06-25 22:00:40 +0000
commitddf6518b950298786ceb9145ae75128fc4c3e862 (patch)
treef33ad49a501da837b5f4906baf160b9389be8863 /src
parent0adfa2c39d567394f423c69bfaf467d0d00ee3df (diff)
downloadpostgresql-ddf6518b950298786ceb9145ae75128fc4c3e862.tar.gz
postgresql-ddf6518b950298786ceb9145ae75128fc4c3e862.zip
Fix to work better with Exuberant's version of ctags.
Gavin Sherry
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/make_ctags17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/tools/make_ctags b/src/tools/make_ctags
index da1ee8fcc98..7f7c8f55eef 100755
--- a/src/tools/make_ctags
+++ b/src/tools/make_ctags
@@ -2,17 +2,22 @@
trap "rm -f /tmp/$$" 0 1 2 3 15
rm -f ./tags
-if ctags --version 2>&1 | grep Exuberant >/dev/null
-then FLAGS="--c-types=+dfmstuv"
-else FLAGS="-dt"
+cv=`ctags --version 2>&1 | grep Exuberant`
+
+if [ -z "$cv" ]
+then FLAGS="-dt"
+else FLAGS="--c-types=+dfmstuv"
fi
find `pwd`/ \( -name _deadcode -a -prune \) -o \
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
-LC_ALL=C
-export LC_ALL
-sort tags >/tmp/$$ && mv /tmp/$$ tags
+if [ -z "$cv" ]
+then
+ LC_ALL=C
+ export LC_ALL
+ sort tags >/tmp/$$ && mv /tmp/$$ tags
+fi
find . -name 'CVS' -prune -o -type d -print |while read DIR
do