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: Yavor Doganov
Subject: trans-coord/gnun/server/gnun ChangeLog GNUmakefile
Date: Fri, 01 Aug 2008 08:22:45 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Yavor Doganov <yavor>   08/08/01 08:22:45

Modified files:
        gnun/server/gnun: ChangeLog GNUmakefile 

Log message:
        ($(subst /po/,/,$(1).html)): Avoid unnecessary rebuilding when there
        are no fuzzy strings.

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

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- ChangeLog   1 Aug 2008 05:26:32 -0000       1.96
+++ ChangeLog   1 Aug 2008 08:22:44 -0000       1.97
@@ -4,6 +4,7 @@
        as regexp in the gawk oneliner.  Remove unnecessary evaluation of
        the field number; the double escaping of the variable already does
        the right job.
+       Avoid unnecessary rebuilding when there are no fuzzy strings.
 
 2008-07-31  Yavor Doganov  <address@hidden>
 

Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- GNUmakefile 1 Aug 2008 05:26:32 -0000       1.54
+++ GNUmakefile 1 Aug 2008 08:22:44 -0000       1.55
@@ -521,8 +521,10 @@
 # obsolete, so proceed as usual.  If there are fuzzy strings, compare
 # the POT-Creation-Date in the PO with the current value of the grace
 # period and invoke regeneration only if the grace period is over.
-       grep --quiet "^#, fuzzy" $(1).po \
-         || ($(M4) $(1).m4 > $$@ ; $(validate-article))
+       if ! grep --quiet "^#, fuzzy" $(1).po ; \
+         then \
+           ($(M4) $(1).m4 > $$@ ; $(validate-article)) ; \
+         else \
        if [ "`date --date="$(GRACE) days ago" +%Y%m%d`" -ge \
             "`$(AWK) '/POT-Creation-Date/ { gsub(/-/, ""); print $$$$2 }' \
               $(1).po`" ] ; \
@@ -530,6 +532,7 @@
            $(M4) $(1).m4 > $$@ && $(validate-article) ; \
          else \
            sleep 1 ; touch $(1).po ; \
+         fi ; \
        fi
 else
        @echo 'Ignoring grace period for article "$(notdir $(basename $(1)))"'




reply via email to

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