[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] a .gmo file is not regenerated when its .po file chang
From: |
Benno Schulenberg |
Subject: |
Re: [bug-gettext] a .gmo file is not regenerated when its .po file changed |
Date: |
Mon, 01 Jun 2015 17:56:29 +0200 |
On Sat, May 30, 2015, at 12:26, Daiki Ueno wrote:
> Benno Schulenberg <address@hidden> writes:
> > the content of the file does not need to be changed, and should therefore
> > not be changed, but the timestamp should be touched/updated so that make
> > (and humans) can see that things are up to date.
>
> If you think so, could you consider providing a patch and maintaining it
> in gettext?
With the following inlined basic patch, things work the way I would
like. Attached is a first attempt at a more complete patch.
Please shoot holes in it. :)
Benno
--- a/gettext-runtime/po/Makefile.in.in
+++ b/gettext-runtime/po/Makefile.in.in
@@ -107,7 +107,7 @@
all: address@hidden@
-all-yes: stamp-po
+all-yes: $(GMOFILES)
all-no:
# Ensure that the gettext macros and this Makefile.in.in are in sync.
@@ -431,6 +431,9 @@
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po
$(DOMAIN).pot -o $$lang.new.po"; \
cd $(srcdir); \
+ if test $$lang.po -ot $(DOMAIN).pot; then \
+ touch $$lang.po; \
+ fi;
if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
$(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po
$$lang.po $(DOMAIN).pot;; \
--
http://www.fastmail.com - A no graphics, no pop-ups email service
0001-po-Make-sure-that-GMO-files-stay-in-sync-with-the-PO.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [bug-gettext] a .gmo file is not regenerated when its .po file changed,
Benno Schulenberg <=