else FLAGS="--c-types=+dfmstuv"
fi
-find `pwd`/ \( -name _deadcode -a -prune \) -o \
- -type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
+find `pwd`/ \( -name _deadcode -prune \) -o \
+ -type f -name '*.[chyl]' -print |
+ xargs ctags "$FLAGS" -a -f tags
if [ -z "$cv" ]
then
sort tags >/tmp/$$ && mv /tmp/$$ tags
fi
-find . -name 'CVS' -prune -o -type d -print |while read DIR
-do
- [ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/tags $DIR/tags
+find . \( -name 'CVS' -prune \) -o \( -name .git -prune \) -o -type d -print |
+while read DIR
+do [ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/tags "$DIR"/tags
done
# $PostgreSQL$
rm -f ./TAGS
-find `pwd`/ -type f -name '*.[chyl]' -print | \
- xargs etags --append -o TAGS
-find . -type d \( -name CVS -o -name .git -prune -o -print \) | \
-while read DIR; do
- [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS $DIR
+find `pwd`/ -type f -name '*.[chyl]' -print |
+ xargs etags --append -o TAGS
+
+find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -type d -print |
+while read DIR
+do [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS "$DIR"
done