I have added the following patch to my working copy of Makefile.common and
converted all wml files to the new method using the following command line

cd polish; perl -np -i.bak -e 's/<!--\s*translation\s*([\d\.]+)[^-]*-->/#use 
wml::debian::translation-check translation="\1"/' `find . -name \*.wml`

It seems to work, i.e. the files are remade if english originals ar touched.
May the patch be applied to the repository? Will it break anything or will
it cause too much load for the machine the web site is built on?

regards
Marcin

PS: I broke the "ENGLISHDIR := $(ENGLISHSRCDIR)" line because it caused the
variable to contain trailing space.

-- 
+--------------------------------+ The reason we come up with new versions
|Marcin Owsiany                  | is not to fix bugs. It's the stupidest
|[EMAIL PROTECTED]| reason to buy a new version
+--------------------------------+ I ever heard.            - Bill Gates
Index: Makefile.common
===================================================================
RCS file: /cvs/webwml/webwml/Makefile.common,v
retrieving revision 1.10
diff -u -r1.10 Makefile.common
--- Makefile.common     2000/09/11 19:11:54     1.10
+++ Makefile.common     2000/09/20 17:39:33
@@ -17,7 +17,8 @@
 ENGLISHSRCDIR = $(WMLBASE)/../english
 endif
 
-ENGLISHDIR := $(ENGLISHSRCDIR) # this is just an alias
+ENGLISHDIR := $(ENGLISHSRCDIR)
+# this ^ is just an alias
 HTMLDIR = $(WMLBASE)/$(RELHTMLBASE)/$(CUR_DIR)
 TEMPLDIR = $(WMLBASE)/$(RELTEMPLDIR)
 
@@ -113,7 +114,7 @@
        $(WML) $(<F)
 else
 %.$(LANGUAGE).html : %.wml $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml \
-               $(HTMLDEP)
+               $(HTMLDEP) $(ENGLISHSRCDIR)/$(CUR_DIR)/%.wml
        $(WML) $(<F)
 endif
 endif

Reply via email to