trans-coord-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trans-coord/gnun/server/gnun ChangeLog GNUmakefile


From: Pavel Kharitonov
Subject: trans-coord/gnun/server/gnun ChangeLog GNUmakefile
Date: Thu, 22 Sep 2011 12:05:42 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Pavel Kharitonov <ineiev>       11/09/22 12:05:42

Modified files:
        gnun/server/gnun: ChangeLog GNUmakefile 

Log message:
        * GNUmakefile (whatsnew-translist-rule): New variable.
        ($(template-dir)/po/whatsnew.proto)
        ($(template-dir)/po/whatsnew.%.html): Regenerate list
        of translations for /server/whatsnew.html the same way
        as for articles.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.205&r2=1.206
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.96&r2=1.97

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.205
retrieving revision 1.206
diff -u -b -r1.205 -r1.206
--- ChangeLog   20 Sep 2011 04:37:15 -0000      1.205
+++ ChangeLog   22 Sep 2011 12:05:42 -0000      1.206
@@ -1,3 +1,11 @@
+2011-09-23  Pavel Kharitonov  <address@hidden>
+
+       * GNUmakefile (whatsnew-translist-rule): New variable.
+       ($(template-dir)/po/whatsnew.proto)
+       ($(template-dir)/po/whatsnew.%.html): Regenerate list
+       of translations for /server/whatsnew.html the same way
+       as for articles.
+
 2011-09-20  Pavel Kharitonov  <address@hidden>
 
        * GNUmakefile (PO4A-XHTMLFLAGS): Add --master-charset=utf-8.

Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- GNUmakefile 20 Sep 2011 04:37:15 -0000      1.96
+++ GNUmakefile 22 Sep 2011 12:05:42 -0000      1.97
@@ -431,6 +431,16 @@
 $(foreach t-lang,$(TEMPLATE_LINGUAS),$(eval $(call template-rules,$(t-lang))))
 ### End of the templates-specific rules ###
 
+# generate-translinks is desined to be used from eval'ed expression,
+# this is why we can't invoke it from whatsnew rules and rather
+# indirectly define a rule to build the file.
+define whatsnew-translist-rule
+.PHONY: regen-whatsnew-translist
+regen-whatsnew-translist:
+       $(call generate-translinks,$(template-dir)/po/whatsnew)
+endef
+$(eval $(whatsnew-translist-rule))
+
 ### Specific rules for the What's New system (a.k.a. GNU news) ###
 # There is a lot of duplication with article-rules, but at least one
 # command in every recipe has to be different.  Also, we don't want
@@ -444,6 +454,7 @@
          --generic=generic.html --home --output=$@ \
          || ($(RM) $@ ; exit 1)
        $(SED) --in-place "s/\$$Date.*\$$/<gnun>\0<\/gnun>/g" $@
+       $(MAKE) regen-whatsnew-translist
 
 $(template-dir)/po/whatsnew.pot: $(template-dir)/po/whatsnew.proto \
                                 $(template-dir)/whatsnew.include
@@ -554,6 +565,7 @@
          $@ || (PO=$(template-dir)/po/whatsnew.$*.po ; $(touch-hook))
 # Copy the target where it belongs.
        cp $@ $(template-dir)
+       $(MAKE) regen-whatsnew-translist
 ### End of the whatsnew-specific rules ###
 
 ### Specific rules for the homepages ###



reply via email to

[Prev in Thread] Current Thread [Next in Thread]