Skip to content

Commit fccb413

Browse files
committed
Merge branch 'jk/make-tags-find-sources-tweak' into maint
Update the procedure to generate "tags" for developer support. * jk/make-tags-find-sources-tweak: Makefile: exclude contrib from FIND_SOURCE_FILES Makefile: match shell scripts in FIND_SOURCE_FILES Makefile: exclude test cruft from FIND_SOURCE_FILES Makefile: reformat FIND_SOURCE_FILES
2 parents 424b07a + 046e4c1 commit fccb413

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

Makefile

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,9 +2149,22 @@ endif
21492149
po/build/locale/%/LC_MESSAGES/git.mo: po/%.po
21502150
$(QUIET_MSGFMT)mkdir -p $(dir $@) && $(MSGFMT) -o $@ $<
21512151

2152-
FIND_SOURCE_FILES = ( git ls-files '*.[hcS]' 2>/dev/null || \
2153-
$(FIND) . \( -name .git -type d -prune \) \
2154-
-o \( -name '*.[hcS]' -type f -print \) )
2152+
FIND_SOURCE_FILES = ( \
2153+
git ls-files \
2154+
'*.[hcS]' \
2155+
'*.sh' \
2156+
':!*[tp][0-9][0-9][0-9][0-9]*' \
2157+
':!contrib' \
2158+
2>/dev/null || \
2159+
$(FIND) . \
2160+
\( -name .git -type d -prune \) \
2161+
-o \( -name '[tp][0-9][0-9][0-9][0-9]*' -prune \) \
2162+
-o \( -name contrib -type d -prune \) \
2163+
-o \( -name build -type d -prune \) \
2164+
-o \( -name 'trash*' -type d -prune \) \
2165+
-o \( -name '*.[hcS]' -type f -print \) \
2166+
-o \( -name '*.sh' -type f -print \) \
2167+
)
21552168

21562169
$(ETAGS_TARGET): FORCE
21572170
$(RM) $(ETAGS_TARGET)

0 commit comments

Comments
 (0)