From f95b116d50888999f13070a0386448c2e9d40e6a Mon Sep 17 00:00:00 2001 From: nobuyuki morita Date: Sun, 2 Dec 2012 02:18:45 +0000 Subject: create Makefile if(source have it && dest do not); it did not create at all if the directory exists CVS version numbers copypage.pl: 1.40 -> 1.41 --- copypage.pl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'copypage.pl') diff --git a/copypage.pl b/copypage.pl index 3335ee18911..cdaf5175b23 100755 --- a/copypage.pl +++ b/copypage.pl @@ -225,14 +225,14 @@ sub copy mkpath([$dstdir],0,0755) or die "Could not create $dstdir: $!\n"; - if ( -e $srcmake ) - { - 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; - } + } + if ( -e $srcmake && ! -e $dstmake ) + { + 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; } # Check if title translation exists, if so - load it -- cgit v1.2.3