From 64686042e5fd0275beb41d6f046f8d79a6e2f644 Mon Sep 17 00:00:00 2001 From: Peter Karlsson Date: Fri, 12 Dec 2003 20:17:10 +0000 Subject: Only warn for pages already translated. Makes it easier to use wildcards. CVS version numbers copypage.pl: 1.24 -> 1.25 --- copypage.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'copypage.pl') 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) -- cgit v1.2.3