зеркало из https://github.com/microsoft/git.git
Merge branch 'jk/make-tags-find-sources-tweak'
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
This commit is contained in:
Коммит
09b4fdb5f3
19
Makefile
19
Makefile
|
@ -2140,9 +2140,22 @@ endif
|
||||||
po/build/locale/%/LC_MESSAGES/git.mo: po/%.po
|
po/build/locale/%/LC_MESSAGES/git.mo: po/%.po
|
||||||
$(QUIET_MSGFMT)mkdir -p $(dir $@) && $(MSGFMT) -o $@ $<
|
$(QUIET_MSGFMT)mkdir -p $(dir $@) && $(MSGFMT) -o $@ $<
|
||||||
|
|
||||||
FIND_SOURCE_FILES = ( git ls-files '*.[hcS]' 2>/dev/null || \
|
FIND_SOURCE_FILES = ( \
|
||||||
$(FIND) . \( -name .git -type d -prune \) \
|
git ls-files \
|
||||||
-o \( -name '*.[hcS]' -type f -print \) )
|
'*.[hcS]' \
|
||||||
|
'*.sh' \
|
||||||
|
':!*[tp][0-9][0-9][0-9][0-9]*' \
|
||||||
|
':!contrib' \
|
||||||
|
2>/dev/null || \
|
||||||
|
$(FIND) . \
|
||||||
|
\( -name .git -type d -prune \) \
|
||||||
|
-o \( -name '[tp][0-9][0-9][0-9][0-9]*' -prune \) \
|
||||||
|
-o \( -name contrib -type d -prune \) \
|
||||||
|
-o \( -name build -type d -prune \) \
|
||||||
|
-o \( -name 'trash*' -type d -prune \) \
|
||||||
|
-o \( -name '*.[hcS]' -type f -print \) \
|
||||||
|
-o \( -name '*.sh' -type f -print \) \
|
||||||
|
)
|
||||||
|
|
||||||
$(ETAGS_TARGET): FORCE
|
$(ETAGS_TARGET): FORCE
|
||||||
$(RM) $(ETAGS_TARGET)
|
$(RM) $(ETAGS_TARGET)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче