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

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

trans-coord/gnun/server/gnun GNUmakefile.team


From: Pavel Kharitonov
Subject: trans-coord/gnun/server/gnun GNUmakefile.team
Date: Mon, 14 Jan 2013 19:40:15 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Pavel Kharitonov <ineiev>       13/01/14 19:40:15

Modified files:
        gnun/server/gnun: GNUmakefile.team 

Log message:
        Fix previous commit.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/GNUmakefile.team?cvsroot=trans-coord&r1=1.30&r2=1.31

Patches:
Index: GNUmakefile.team
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile.team,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- GNUmakefile.team    14 Jan 2013 17:50:57 -0000      1.30
+++ GNUmakefile.team    14 Jan 2013 19:40:15 -0000      1.31
@@ -376,9 +376,10 @@
 endif # ! eq (,$(ALL_DIRS))
 
 # Team's translations that lack PO file.
+# Note: optional templates can't have HTML translations, so grep -v '\.opt$$'.
 html-only := $(shell echo $(pots) | sed 's/ /\n/g' \
-  | while read pot; do \
-      po=$${pot%.opt}; po=$${po%pot}$(TEAM).po; \
+  | grep -v '\.opt$$' | while read pot; do \
+      po=$${po%pot}$(TEAM).po; \
       team_po=`echo $$po | sed 's,/po/,/,; s,^$(wwwdir),./,'`; \
       html=$${po%po}html; html=$${html/\/po\//\/}; \
       if ! test -f $$po && ! test -f $$team_po && test -f $$html; then \
@@ -450,12 +451,8 @@
     done;) \
   $(if $($(1)-html), \
     for file in $($(1)-html); do \
-      case $$file in \
-        ( *.pot.opt ) echo "Optional templates can't have HTML translations." \
-                    > /dev/null ;; \
-        ( * ) echo \
-      "$${file#./}: HTML-only translation$(comma) needs conversion to PO." ;; \
-      esac; \
+      echo \
+        "$${file#./}: HTML-only translation$(comma) needs conversion to PO."; \
     done;) \
   $(if $(2), echo;))
 endef



reply via email to

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