From eb7d18a4ac962018cac6f412206416c0c3b6ab9e Mon Sep 17 00:00:00 2001 From: redpony Date: Tue, 6 Jul 2010 19:34:06 +0000 Subject: fix git-svn-id: https://ws10smt.googlecode.com/svn/trunk@160 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/pipeline/evaluation-pipeline.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gi/pipeline/evaluation-pipeline.pl b/gi/pipeline/evaluation-pipeline.pl index bbab2d64..06c89b60 100755 --- a/gi/pipeline/evaluation-pipeline.pl +++ b/gi/pipeline/evaluation-pipeline.pl @@ -156,7 +156,8 @@ if (-f $tuned_weights) { chdir $outdir or die "Can't chdir to $outdir: $!"; $weights = `$cmd`; die "MERT reported non-zero exit code" unless $? == 0; - `cp $weights $tuned_weights`; + chomp $weights; + safesystem($tuned_weights, "cp $weights $tuned_weights"); print STDERR "TUNED WEIGHTS: $tuned_weights\n"; die "$tuned_weights is missing!" unless -f $tuned_weights; } -- cgit v1.2.3