mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 00:56:53 +02:00
Make 'find' syntax consistent; add .git exclusion to make_ctags.
This commit is contained in:
parent
c82b63a54f
commit
6faf495b8a
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# $PostgreSQL: pgsql/src/tools/make_ctags,v 1.11 2006/03/11 04:38:41 momjian Exp $
|
# $PostgreSQL: pgsql/src/tools/make_ctags,v 1.12 2009/01/14 21:59:19 momjian Exp $
|
||||||
|
|
||||||
trap "rm -f /tmp/$$" 0 1 2 3 15
|
trap "rm -f /tmp/$$" 0 1 2 3 15
|
||||||
rm -f ./tags
|
rm -f ./tags
|
||||||
@ -12,8 +12,9 @@ then FLAGS="-dt"
|
|||||||
else FLAGS="--c-types=+dfmstuv"
|
else FLAGS="--c-types=+dfmstuv"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
find `pwd`/ \( -name _deadcode -a -prune \) -o \
|
find `pwd`/ \( -name _deadcode -prune \) -o \
|
||||||
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
|
-type f -name '*.[chyl]' -print |
|
||||||
|
xargs ctags "$FLAGS" -a -f tags
|
||||||
|
|
||||||
if [ -z "$cv" ]
|
if [ -z "$cv" ]
|
||||||
then
|
then
|
||||||
@ -22,7 +23,7 @@ then
|
|||||||
sort tags >/tmp/$$ && mv /tmp/$$ tags
|
sort tags >/tmp/$$ && mv /tmp/$$ tags
|
||||||
fi
|
fi
|
||||||
|
|
||||||
find . -name 'CVS' -prune -o -type d -print |while read DIR
|
find . \( -name 'CVS' -prune \) -o \( -name .git -prune \) -o -type d -print |
|
||||||
do
|
while read DIR
|
||||||
[ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/tags $DIR/tags
|
do [ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/tags "$DIR"/tags
|
||||||
done
|
done
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# $PostgreSQL: pgsql/src/tools/make_etags,v 1.5 2009/01/14 21:28:32 petere Exp $
|
# $PostgreSQL: pgsql/src/tools/make_etags,v 1.6 2009/01/14 21:59:19 momjian Exp $
|
||||||
|
|
||||||
rm -f ./TAGS
|
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 \) | \
|
find `pwd`/ -type f -name '*.[chyl]' -print |
|
||||||
while read DIR; do
|
xargs etags --append -o TAGS
|
||||||
[ "$DIR" != "." ] && ln -f -s `pwd`/TAGS $DIR
|
|
||||||
|
find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -type d -print |
|
||||||
|
while read DIR
|
||||||
|
do [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS "$DIR"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user