Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6faf495

Browse files
committed
Make 'find' syntax consistent; add .git exclusion to make_ctags.
1 parentc82b63a commit6faf495

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

‎src/tools/make_ctags

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/make_ctags,v 1.11 2006/03/11 04:38:41 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/make_ctags,v 1.12 2009/01/14 21:59:19 momjian Exp $
44

55
trap"rm -f /tmp/$$" 0 1 2 3 15
66
rm -f ./tags
@@ -12,8 +12,9 @@ thenFLAGS="-dt"
1212
elseFLAGS="--c-types=+dfmstuv"
1313
fi
1414

15-
find`pwd`/\( -name _deadcode -a -prune\) -o \
16-
-type f -name'*.[chyl]' -print|xargs ctags"$FLAGS" -a -f tags
15+
find`pwd`/\( -name _deadcode -prune\) -o \
16+
-type f -name'*.[chyl]' -print|
17+
xargs ctags"$FLAGS" -a -f tags
1718

1819
if [-z"$cv" ]
1920
then
@@ -22,7 +23,7 @@ then
2223
sort tags>/tmp/$$&& mv /tmp/$$ tags
2324
fi
2425

25-
find. -name'CVS' -prune -o-type d -print|whileread DIR
26-
do
27-
["$DIR"!="." ]&& ln -f -s`echo"$DIR"| sed's;/[^/]*;/..;g'`/tags$DIR/tags
26+
find.\(-name'CVS' -prune\)-o\( -name .git -prune\) -o -type d -print|
27+
whileread DIR
28+
do["$DIR"!="." ]&& ln -f -s`echo"$DIR"| sed's;/[^/]*;/..;g'`/tags"$DIR"/tags
2829
done

‎src/tools/make_etags

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/make_etags,v 1.5 2009/01/14 21:28:32 petere Exp $
3+
# $PostgreSQL: pgsql/src/tools/make_etags,v 1.6 2009/01/14 21:59:19 momjian Exp $
44

55
rm -f ./TAGS
6-
find`pwd`/ -type f -name'*.[chyl]' -print| \
7-
xargs etags --append -o TAGS
86

9-
find. -type d\( -name CVS -o -name .git -prune -o -print\)| \
10-
whileread DIR;do
11-
["$DIR"!="." ]&& ln -f -s`pwd`/TAGS$DIR
7+
find`pwd`/ -type f -name'*.[chyl]' -print|
8+
xargs etags --append -o TAGS
9+
10+
find.\( -name CVS -prune\) -o\( -name .git -prune\) -o -type d -print|
11+
whileread DIR
12+
do["$DIR"!="." ]&& ln -f -s`pwd`/TAGS"$DIR"
1213
done

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp