You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2017/02/01 01:28:04 UTC

[8/9] incubator-joshua git commit: copies over KenLM now

copies over KenLM now


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/4fb8cf3e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/4fb8cf3e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/4fb8cf3e

Branch: refs/heads/master
Commit: 4fb8cf3e9b5071ad49f40e22051b3930c3b08aa0
Parents: 77e64aa
Author: Matt Post <po...@cs.jhu.edu>
Authored: Tue Jan 31 19:34:59 2017 -0500
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Tue Jan 31 19:34:59 2017 -0500

----------------------------------------------------------------------
 scripts/language-pack/build_lp.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/4fb8cf3e/scripts/language-pack/build_lp.sh
----------------------------------------------------------------------
diff --git a/scripts/language-pack/build_lp.sh b/scripts/language-pack/build_lp.sh
index 42f13b2..15cdb3c 100755
--- a/scripts/language-pack/build_lp.sh
+++ b/scripts/language-pack/build_lp.sh
@@ -78,12 +78,16 @@ copy_template() {
     > $2
 }
 
-# Create the target directory
+# Create the target directory and copy over the jarfile
 [[ ! -d "$dest/target" ]] && mkdir -p "$dest/target"
-
-# Copy over critical infrastructure files
 cp $JARFILE $dest/target
 
+# Copy over KenLM if found
+if [[ -e "$JOSHUA/lib/libken.so" ]]; then
+    [[ ! -d "$dest/lib" ]] && mkdir -p "$dest/lib"
+    cp $JOSHUA/lib/libken.so "$dest/lib"
+fi
+
 # Copy over the web demonstration
 cp -a $JOSHUA/demo $dest/web