projects/guix·blob python-team · refs

50 lines · 2.0 KiB

1Do not try to regenerate po files; use the reference files that are packaged
2in the tarball.
3
4--- a/Makefile.in 2010-06-30 17:02:28.000000000 -0500
5+++ b/Makefile.in 2014-08-16 00:22:38.447050269 -0500
6@@ -1022,15 +1022,7 @@
7
8 i18n/en.thl i18n/: $(po_document_dir)/po_document/$(PACKAGE)_document.pot
9 $(MKDIR_P) i18n
10- if test '$(USE_NLS)' = 'yes'; then \
11- for file in "$(srcdir)/$(po_document_dir)/po_document/"*".po"; do lang=`basename "$$file" .po | sed 's/\..*//'`; \
12- test "$$lang" = 'en' && continue; \
13- msgexec -i "$$file" "$(srcdir)/gettext_to_separated.pl" | "$(srcdir)/separated_to_hash.pl" $$lang > i18n/$$lang.thl; \
14- done; \
15- msgexec -i $< "$(srcdir)/gettext_to_separated.pl" | "$(srcdir)/separated_to_hash.pl" en > i18n/en.thl; \
16- else \
17- cp -p i18n_ref/*.thl i18n; \
18- fi
19+ cp -p i18n_ref/*.thl i18n
20
21 i18n_ref:
22 $(MKDIR_P) i18n_ref
23
24Have install-sh install .mo files locally for in-source tests, so that msgfmt
25is not needed.
26
27--- a/Makefile.in 2010-06-30 17:02:28.000000000 -0500
28+++ b/Makefile.in 2014-08-16 00:22:38.447050269 -0500
29@@ -1052,19 +1044,8 @@
30 # update the po files, and install locally the .mo files for the in
31 # source tests
32 check-local: makeinfo.pl texi2any.pl
33- if test '$(USE_NLS)' = 'yes'; then \
34- cd $(po_document_dir)/po_document && $(MAKE) $(AM_MAKEFLAGS) update-po; \
35- fi
36- rm -rf locales
37- for file in "$(srcdir)/$(po_document_dir)/po_document/"*.po; do \
38- basename=`basename "$$file" .po` ; \
39- $(MKDIR_P) "locales/$$basename/LC_MESSAGES/" ; \
40- if test '$(USE_NLS)' = 'yes'; then \
41- $(MSGFMT) "$$file" -o "locales/$$basename/LC_MESSAGES/texi2html_document.mo" ; \
42- else \
43- cp -p "$(srcdir)/$(po_document_dir)/po_document/$$basename.mo" "locales/$$basename/LC_MESSAGES/texi2html_document.mo" ; \
44- fi; \
45- done
46+ $(MAKE) -C po_document localedir="$(abs_srcdir)/locales" install-data
47+ $(MAKE) -C po_messages localedir="$(abs_srcdir)/locales" install-data
48
49 makeinfo.pl texi2any.pl:
50 -$(LN_S) $(srcdir)/texi2html.pl $@