equal
deleted
inserted
replaced
7 export PREFIX=/usr/local |
7 export PREFIX=/usr/local |
8 PYTHON=python |
8 PYTHON=python |
9 $(eval HGROOT := $(shell pwd)) |
9 $(eval HGROOT := $(shell pwd)) |
10 HGPYTHONS ?= $(HGROOT)/build/pythons |
10 HGPYTHONS ?= $(HGROOT)/build/pythons |
11 PURE= |
11 PURE= |
12 PYFILES:=$(shell find mercurial hgext doc -name '*.py') |
12 PYFILESCMD=find mercurial hgext doc -name '*.py' |
|
13 PYFILES:=$(shell $(PYFILESCMD)) |
13 DOCFILES=mercurial/help/*.txt |
14 DOCFILES=mercurial/help/*.txt |
14 export LANGUAGE=C |
15 export LANGUAGE=C |
15 export LC_ALL=C |
16 export LC_ALL=C |
16 TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) |
17 TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) |
17 OSXVERSIONFLAGS ?= $(shell echo $$OSXVERSIONFLAGS) |
18 OSXVERSIONFLAGS ?= $(shell echo $$OSXVERSIONFLAGS) |
143 # ASCII characters only. But some files contain string |
144 # ASCII characters only. But some files contain string |
144 # literals like this '\037\213'. xgettext thinks it has to |
145 # literals like this '\037\213'. xgettext thinks it has to |
145 # parse them even though they are not marked for translation. |
146 # parse them even though they are not marked for translation. |
146 # Extracting with an explicit encoding of ISO-8859-1 will make |
147 # Extracting with an explicit encoding of ISO-8859-1 will make |
147 # xgettext "parse" and ignore them. |
148 # xgettext "parse" and ignore them. |
148 echo $(PYFILES) | xargs \ |
149 $(PYFILESCMD) | xargs \ |
149 xgettext --package-name "Mercurial" \ |
150 xgettext --package-name "Mercurial" \ |
150 --msgid-bugs-address "<mercurial-devel@mercurial-scm.org>" \ |
151 --msgid-bugs-address "<mercurial-devel@mercurial-scm.org>" \ |
151 --copyright-holder "Matt Mackall <mpm@selenic.com> and others" \ |
152 --copyright-holder "Matt Mackall <mpm@selenic.com> and others" \ |
152 --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \ |
153 --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \ |
153 -d hg -p i18n -o hg.pot.tmp |
154 -d hg -p i18n -o hg.pot.tmp |