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
path: root/bjam
diff options
context:
space:
mode:
authorKenneth Heafield <kenlm@kheafield.com>2011-11-18 22:14:09 +0400
committerKenneth Heafield <kenlm@kheafield.com>2011-11-18 22:14:09 +0400
commit9102477a072e92c574367ce4ba6c6692c2a92bb4 (patch)
tree35d01c49b87e3b3bf62a4cd1b78b9bf84f1a70ce /bjam
parentf15eee0abf7e1d2795cbffd26b82992f23c1f36b (diff)
bjam for people who don't have it
Diffstat (limited to 'bjam')
-rwxr-xr-xbjam13
1 files changed, 13 insertions, 0 deletions
diff --git a/bjam b/bjam
new file mode 100755
index 000000000..650fcd564
--- /dev/null
+++ b/bjam
@@ -0,0 +1,13 @@
+#!/bin/env bash
+set -e
+which bjam >/dev/null 2>/dev/null && exec bjam "$@"
+
+top="$(dirname "$0")"
+if [ ! -x "$top"/jam-files/bjam ]; then
+ pushd "$top/jam-files/engine"
+ ./build.sh
+ cp -f bin.*/bjam ../bjam
+ popd
+fi
+
+BOOST_BUILD_PATH="$top"/jam-files/boost-build exec "$top"/jam-files/bjam "$@"