diff options
author | nobuyuki morita <victory-guest> | 2012-12-02 02:18:45 +0000 |
---|---|---|
committer | nobuyuki morita <victory-guest> | 2012-12-02 02:18:45 +0000 |
commit | f95b116d50888999f13070a0386448c2e9d40e6a (patch) | |
tree | 51fe52d2fbaf61bdb743020653822e66252a6015 | |
parent | 403dfb34f10814cf599ad552f0dbd34e264ff534 (diff) |
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
-rwxr-xr-x | copypage.pl | 16 |
1 files changed, 8 insertions, 8 deletions
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 |