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, 13 Jun 2008 15:01:58 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Yavor Doganov <yavor>   08/06/13 15:01:58

Modified files:
        gnun/server/gnun: ChangeLog GNUmakefile 

Log message:
        (fixperm): New variable; workaround for a CVS file permissions
        problem that only a affects a few files in www.
        ($(rootdir)/gnusflashes.%.include, $(rootdir)/po/home.pot)
        ($(rootdir)/po/home.$(1).po, $(rootdir)/home.$(1).shtml)
        ($(1).pot, $(1).po, $(subst /po/,/,$(1).html)): Use it.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.86&r2=1.87
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.45&r2=1.46

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -b -r1.86 -r1.87
--- ChangeLog   13 Jun 2008 08:47:55 -0000      1.86
+++ ChangeLog   13 Jun 2008 15:01:58 -0000      1.87
@@ -2,6 +2,11 @@
 
        * GNUmakefile (transl-addr): Define to trans-coord-devel in order
        trans-coord build errors not to bother translators.
+       (fixperm): New variable; workaround for a CVS file permissions
+       problem that only a affects a few files in www.
+       ($(rootdir)/gnusflashes.%.include, $(rootdir)/po/home.pot)
+       ($(rootdir)/po/home.$(1).po, $(rootdir)/home.$(1).shtml)
+       ($(1).pot, $(1).po, $(subst /po/,/,$(1).html)): Use it.
 
 2008-06-12  Yavor Doganov  <address@hidden>
 

Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -b -r1.45 -r1.46
--- GNUmakefile 13 Jun 2008 08:47:55 -0000      1.45
+++ GNUmakefile 13 Jun 2008 15:01:58 -0000      1.46
@@ -176,6 +176,14 @@
   "[GNUN Error] Incompatible change in $(subst $(rootdir)/,,$<)"
 endef
 
+# The command to restore the necessary write permissions of the
+# target.  This is a workaround for a CVS quirk that affects only the
+# `www' repository.
+# 
http://lists.gnu.org/archive/html/savannah-hackers-public/2008-06/msg00046.html
+define fixperm
+chmod +w $@
+endef
+
 # Ensure that generic.LANG.html is always present for the homepage and
 # articles' generation.
 
@@ -300,6 +308,7 @@
        [ -f $@ ] || (touch $@ ; $(CVSSKIP) $(CVS) add $@ \
          && ([ ! -f $(rootdir)/home.$*.shtml ] \
              || touch $(rootdir)/po/home.$*.po))
+       $(fixperm)
        echo "<!--Automatically generated by GNUN; do not edit!-->" > $@
        grep --max-count=3 '<dd>.*</dd>' $< >> $@
        $(SED) --in-place "s/\(\/\?\)dd>/\1p>/g" $@ || (touch $< ; exit 1)
@@ -363,11 +372,13 @@
 
 $(rootdir)/po/home.pot: $(rootdir)/po/home.proto
        $(addfile)
+       $(fixperm)
        $(generate-pot)
 
 define home-rules
 $(rootdir)/po/home.$(1).po: $(rootdir)/po/home.pot
        PO=$$@ ; $(check-po)
+       $$(fixperm)
        $(update-po)
 
 $(rootdir)/home.$(1).shtml: $(rootdir)/po/home.proto \
@@ -377,6 +388,7 @@
 # for the reader.  Ensure that the build still barfs next time if the
 # translator doesn't fix it quickly.
        PO=$(rootdir)/po/home.$(1).po ; $(check-po) || (touch $$$$PO ; exit 1)
+       $$(fixperm)
        PO=$(rootdir)/po/home.$(1).po OUT=$(rootdir)/po/home.$(1).m4 ; \
          $(generate-html)
        $(SED) --in-place \
@@ -421,12 +433,14 @@
 
 $(1).pot: $(1).proto
        $$(addfile)
+       $$(fixperm)
        $$(generate-pot)
 endef
 
 define article-rules
 $(1).po: $(basename $(1)).pot
        PO=$$@ ; $(check-po)
+       $$(fixperm)
        $(update-po)
 
 $(subst /po/,/,$(1).html): $(basename $(1)).proto $(basename $(1)).translinks \
@@ -448,6 +462,9 @@
 endif
        $$(addfile)
        PO=$(1).po ; $(check-po) || (touch $$$$PO ; exit 1)
+# This is needed for only a few articles, but as it is harmless there
+# is no real need to determine them and run the command conditionally.
+       $$(fixperm)
        PO=$(1).po OUT=$(1).m4 ; $(generate-html)
        $(SED) --in-place \
          "s/\(<gnun>include(\`.*\)\([.]html')<\/gnun>\)/\1.$(2)\2/g" $(1).m4




reply via email to

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