Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2012-02-16 07:28:09 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-02-16 07:28:09 +0400
commit7073f7d89168dc14112a6fd7a34cda9efd5fd6b3 (patch)
tree49c456cc30b6f95728470598fd8c2b62817e4cfe /scripts/generic
parent7f6f8a99f99944fc82b9be21becaf09a62c3add3 (diff)
bug fix by Guchun Zhang
Diffstat (limited to 'scripts/generic')
-rwxr-xr-xscripts/generic/extract-parallel.perl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/generic/extract-parallel.perl b/scripts/generic/extract-parallel.perl
index e44d9372d..b4df119a7 100755
--- a/scripts/generic/extract-parallel.perl
+++ b/scripts/generic/extract-parallel.perl
@@ -112,7 +112,9 @@ else
rename "$TMPDIR/extract.0", "$extract";
rename "$TMPDIR/extract.0.inv", "$extract.inv";
- if (-e "$TMPDIR/extract.0.o")
+
+ my $numStr = NumStr(0);
+ if (-e "$TMPDIR/extract.$numStr.o")
{
rename "$TMPDIR/extract.0.o", "$extract.o";
}