[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trans-coord/gnun/prep/gnun GNUmakefile ChangeLog
From: |
Kaloian Doganov |
Subject: |
trans-coord/gnun/prep/gnun GNUmakefile ChangeLog |
Date: |
Mon, 28 Jan 2008 15:44:47 +0000 |
CVSROOT: /sources/trans-coord
Module name: trans-coord
Changes by: Kaloian Doganov <kaloian> 08/01/28 15:44:47
Modified files:
gnun/prep/gnun : GNUmakefile ChangeLog
Log message:
Ignore POT-Creation-Date changes when they are the only changes in
a pot-file.
* GNUmakefile (MV): Define to mv.
(generate-pot): New variable to hold canned sequence of commands.
($(template_dir)/po/%.pot, $(rootdir)/po/home.pot, $(1).pot): Use
generate-pot instead of direct invocation of $(PO4A-GETTEXTIZE).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/prep/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/prep/gnun/ChangeLog?cvsroot=trans-coord&r1=1.8&r2=1.9
Patches:
Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/prep/gnun/GNUmakefile,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- GNUmakefile 26 Jan 2008 20:09:16 -0000 1.11
+++ GNUmakefile 28 Jan 2008 15:44:47 -0000 1.12
@@ -24,6 +24,7 @@
SED = sed
M4 = m4
TOUCH = touch
+MV = mv
PO4A-GETTEXTIZEFLAGS =
PO4A-TRANSLATEFLAGS = --keep=0
@@ -94,6 +95,17 @@
[ -f $$@ ] || ( $(TOUCH) $$@ ; $(CVS) $(CVSOPTS) add $$@ )
endef
+# The command to generate pot file which perform additional checks
+# whether the changes are not trivial (regarding only
+# POT-Creation-Date), in which case the changes are ignored.
+define generate-pot
address@hidden Generating POT...
+$(PO4A-GETTEXTIZE) $(PO4A_XHTMLFLAGS) $(PO4A-GETTEXTIZEFLAGS) --master $< --po
address@hidden
+if ([ ! -f $@ ] || [ `diff -U 0 $@ address@hidden | grep -v
"^\(---\|+++\|@@\)" | grep -v '^[-+]"POT-Creation-Date:'` ]); then $(MV)
address@hidden $@ ; fi;
+$(TOUCH) $@
+$(RM) address@hidden
+endef
+
# Ensure that generic.LANG.html is always present for the homepage and
# articles' generation.
define generic_rules
@@ -108,8 +120,7 @@
.PRECIOUS: $(template_dir)/po/%.pot
$(template_dir)/po/%.pot: $(template_dir)/%.html
$(addfile)
- @echo Generating POT...
- $(PO4A-GETTEXTIZE) $(PO4A_XHTMLFLAGS) $(PO4A-GETTEXTIZEFLAGS) --master
$< --po $@
+ $(generate-pot)
define template_rules
$(template_dir)/po/%.$(1).po: $(template_dir)/po/%.pot
@@ -138,7 +149,7 @@
$(rootdir)/po/home.pot: $(rootdir)/po/home.proto
$(addfile)
- $(PO4A-GETTEXTIZE) $(PO4A_XHTMLFLAGS) $(PO4A-GETTEXTIZEFLAGS) --master
$< --po $@
+ $(generate-pot)
define home_rules
$(rootdir)/po/home.$(1).po: $(rootdir)/po/home.pot
@@ -177,7 +188,7 @@
$(1).pot: $(1).proto
$(addfile_dbl)
- $(PO4A-GETTEXTIZE) $(PO4A_XHTMLFLAGS) $(PO4A-GETTEXTIZEFLAGS) --master
$$< --po $$@
+ $$(generate-pot)
endef
define article_rules
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/prep/gnun/ChangeLog,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- ChangeLog 27 Jan 2008 17:02:14 -0000 1.8
+++ ChangeLog 28 Jan 2008 15:44:47 -0000 1.9
@@ -1,3 +1,12 @@
+2008-01-28 Kaloian Doganov <address@hidden>
+
+ Ignore POT-Creation-Date changes when they are the only changes in
+ a pot-file.
+ * GNUmakefile (MV): Define to mv.
+ (generate-pot): New variable to hold canned sequence of commands.
+ ($(template_dir)/po/%.pot, $(rootdir)/po/home.pot, $(1).pot): Use
+ generate-pot instead of direct invocation of $(PO4A-GETTEXTIZE).
+
2008-01-27 Yavor Doganov <address@hidden>
* gnun.mk (philosophy): Add `philosophy' to test VCS=yes.
- trans-coord/gnun/prep/gnun GNUmakefile ChangeLog,
Kaloian Doganov <=