aboutsummaryrefslogtreecommitdiffstats
path: root/copypage.pl
diff options
context:
space:
mode:
authorPeter Karlsson <peterk>2003-12-12 20:17:10 +0000
committerPeter Karlsson <peterk>2003-12-12 20:17:10 +0000
commit64686042e5fd0275beb41d6f046f8d79a6e2f644 (patch)
treeb5269cc78fa86a870ab42352c4f47ac5d4ffd899 /copypage.pl
parent17fab28622c20b34c1a335156b167387e5db43e1 (diff)
Only warn for pages already translated. Makes it easier to use wildcards.
CVS version numbers copypage.pl: 1.24 -> 1.25
Diffstat (limited to 'copypage.pl')
-rwxr-xr-xcopypage.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/copypage.pl b/copypage.pl
index 26d7185ef3f..d25a73bf82c 100755
--- a/copypage.pl
+++ b/copypage.pl
@@ -159,7 +159,11 @@ sub copy
# Sanity checks
die "Directory $srcdir does not exist\n" unless -d $srcdir;
die "File $srcfile does not exist\n" unless -e $srcfile;
- die "File $dstfile already exists\n" if -e $dstfile;
+ if (-e $dstfile)
+ {
+ warn "File $dstfile already exists\n";
+ return;
+ }
# Check if destination exists, if not - create it
unless (-d $dstdir)

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