From 0ec70fe48733a796f036e3eb6b016372407d3b05 Mon Sep 17 00:00:00 2001 From: Rhonda D'Vine Date: Wed, 30 Oct 2002 15:13:38 +0000 Subject: Removed copy handling -- sync only support from now on. CVS version numbers copypage.pl: 1.19 -> 1.20 --- copypage.pl | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'copypage.pl') diff --git a/copypage.pl b/copypage.pl index ba7d4f6740e..d2e92db3b45 100755 --- a/copypage.pl +++ b/copypage.pl @@ -2,10 +2,9 @@ # This script copies the file named on the command line to the translation # named in language.conf, and adds the translation-check header to it. -# It also will create the destination directory if necessary, and copy the -# Makefile from the source. If the second line of the language.conf file -# contains the word "sync", a simple Makefile which just includes the English -# version will be created instead. +# It also will create the destination directory if necessary, and create the +# Makefile. It will do this by simply including the English version -- copied +# Makefiles are not supported anymore for they bear too much space for errors. # Originally written 2000-02-26 by Peter Karlsson # © Copyright 2000-2002 Software in the public interest, Inc. @@ -16,7 +15,6 @@ use File::Path; # Get configuration -$copymakefile = 1; if (exists $ENV{DWWW_LANG}) { $language = $ENV{DWWW_LANG}; @@ -28,8 +26,6 @@ elsif (open CONF, " $dstmake" - or die "Could not create $dstmake: $!\n"; - print MK "include \$(subst webwml/$language,webwml/english,\$(CURDIR))/Makefile\n"; - close MK; - } + print "creating it and making a $dstmake\n"; + open MK, "> $dstmake" + or die "Could not create $dstmake: $!\n"; + print MK "include \$(subst webwml/$language,webwml/english,\$(CURDIR))/Makefile\n"; + close MK; } } -- cgit v1.2.3