summaryrefslogtreecommitdiff
path: root/tools/build_luarocks.sh
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-06-22 19:01:29 +0800
committerDeterminant <[email protected]>2015-06-22 19:01:29 +0800
commit2497fd9e7a0fae5ee4887890d7a312e0e08a93b8 (patch)
tree382f97575bd2df9ee6abb1662b11b279fc22d72b /tools/build_luarocks.sh
parent196e9b48a3541caccdffc5743001cced70667091 (diff)
major change: use luarocks to manage project
Diffstat (limited to 'tools/build_luarocks.sh')
-rwxr-xr-xtools/build_luarocks.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/build_luarocks.sh b/tools/build_luarocks.sh
new file mode 100755
index 0000000..e1f1c0b
--- /dev/null
+++ b/tools/build_luarocks.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+LUAROCKS_PREFIX="$PREFIX"
+LUAROCKS_SRC='luarocks/'
+[[ -f "$LUAROCKS_PREFIX/bin/luarocks" ]] || (cd "$LUAROCKS_SRC"; ./configure --prefix=$LUAROCKS_PREFIX --with-lua-include="$LUAROCKS_PREFIX/include/luajit-2.0/" --with-lua="$LUAROCKS_PREFIX" --lua-suffix='jit' --with-lua-lib="$LUAROCKS_PREFIX/lib/"; make clean && make build && make bootstrap )