# HG changeset patch # User FUJIWARA Katsunori # Date 1533211650 -32400 # Node ID 4ca5932065cab7d39c94a5f05a1ad5d834b5b9c9 # Parent 9d49bb117ddef6780c6b8ae3c374dc05dc1062e7 i18n: avoid substitution of PYFILES at runtime for readability of output This substitution decreases readability of "make update-pot" output, because PYFILES consists of many files. This patch makes "make update-pot" show "find mercurial hgext doc -name '*.py'" instead of many *.py files at runtime. diff -r 9d49bb117dde -r 4ca5932065ca Makefile --- a/Makefile Thu Aug 02 20:53:03 2018 +0100 +++ b/Makefile Thu Aug 02 21:07:30 2018 +0900 @@ -9,7 +9,8 @@ $(eval HGROOT := $(shell pwd)) HGPYTHONS ?= $(HGROOT)/build/pythons PURE= -PYFILES:=$(shell find mercurial hgext doc -name '*.py') +PYFILESCMD=find mercurial hgext doc -name '*.py' +PYFILES:=$(shell $(PYFILESCMD)) DOCFILES=mercurial/help/*.txt export LANGUAGE=C export LC_ALL=C @@ -145,7 +146,7 @@ # parse them even though they are not marked for translation. # Extracting with an explicit encoding of ISO-8859-1 will make # xgettext "parse" and ignore them. - echo $(PYFILES) | xargs \ + $(PYFILESCMD) | xargs \ xgettext --package-name "Mercurial" \ --msgid-bugs-address "" \ --copyright-holder "Matt Mackall and others" \