summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphilblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-06 17:45:37 +0000
committerphilblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-06 17:45:37 +0000
commit4c158811b747ff367e76d721d5f722daa4f26f56 (patch)
tree6aed097446f293e894e67d1a56bb7537ee337806
parentc04ba5eed5049569d327dfb6162d91bec0a3aec8 (diff)
Fixed config file bug.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@155 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-xgi/pipeline/local-gi-pipeline.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/gi/pipeline/local-gi-pipeline.pl b/gi/pipeline/local-gi-pipeline.pl
index 7f20ccb3..6e396165 100755
--- a/gi/pipeline/local-gi-pipeline.pl
+++ b/gi/pipeline/local-gi-pipeline.pl
@@ -58,7 +58,9 @@ safemkdir($OUTPUT) or die "Couldn't create output directory $OUTPUT: $!";
safemkdir($CONTEXT_DIR) or die "Couldn't create output directory $CONTEXT_DIR: $!";
safemkdir($CLUSTER_DIR) or die "Couldn't create output directory $CLUSTER_DIR: $!";
safemkdir($GRAMMAR_DIR) or die "Couldn't create output directory $GRAMMAR_DIR: $!";
-copy($TOPICS_CONFIG, $CLUSTER_DIR) or die "Copy failed: $!";
+if (-e $TOPICS_CONFIG) {
+ copy($TOPICS_CONFIG, $CLUSTER_DIR) or die "Copy failed: $!";
+}
extract_context();
topic_train();