aboutsummaryrefslogtreecommitdiffstats
path: root/copypage.pl
diff options
context:
space:
mode:
authornobuyuki morita <victory-guest>2012-12-02 02:18:45 +0000
committernobuyuki morita <victory-guest>2012-12-02 02:18:45 +0000
commitf95b116d50888999f13070a0386448c2e9d40e6a (patch)
tree51fe52d2fbaf61bdb743020653822e66252a6015 /copypage.pl
parent403dfb34f10814cf599ad552f0dbd34e264ff534 (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
Diffstat (limited to 'copypage.pl')
-rwxr-xr-xcopypage.pl16
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy