From 67ef2b2507a3f2119ec4c744dc357e01067a8128 Mon Sep 17 00:00:00 2001 From: philblunsom Date: Tue, 6 Jul 2010 17:45:37 +0000 Subject: Fixed config file bug. git-svn-id: https://ws10smt.googlecode.com/svn/trunk@155 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/pipeline/local-gi-pipeline.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gi/pipeline') 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(); -- cgit v1.2.3