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:02 UTC

[6/9] incubator-joshua git commit: sets default language

sets default language


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

Branch: refs/heads/master
Commit: 7dd48cf131dafc24cde3dbf019d6f956507f5ed6
Parents: ca6e845
Author: Matt Post <po...@cs.jhu.edu>
Authored: Tue Jan 31 19:33:06 2017 -0500
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Tue Jan 31 19:33:06 2017 -0500

----------------------------------------------------------------------
 scripts/language-pack/prepare.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/7dd48cf1/scripts/language-pack/prepare.sh
----------------------------------------------------------------------
diff --git a/scripts/language-pack/prepare.sh b/scripts/language-pack/prepare.sh
index af3a332..1e034d1 100755
--- a/scripts/language-pack/prepare.sh
+++ b/scripts/language-pack/prepare.sh
@@ -19,7 +19,8 @@
 
 set -u
 
-lang=<SRC>
+# Set default language. Override with "lang=XX prepare.sh"
+: ${lang=<SRC>}
 
 cd $(dirname $0) # relative paths now safe
 ./scripts/normalize.pl $lang | ./scripts/tokenize.pl -l $lang