From 2497fd9e7a0fae5ee4887890d7a312e0e08a93b8 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 22 Jun 2015 19:01:29 +0800 Subject: major change: use luarocks to manage project --- tools/build_luajit.sh | 4 ++++ tools/build_luarocks.sh | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 tools/build_luajit.sh create mode 100755 tools/build_luarocks.sh (limited to 'tools') diff --git a/tools/build_luajit.sh b/tools/build_luajit.sh new file mode 100755 index 0000000..7a66412 --- /dev/null +++ b/tools/build_luajit.sh @@ -0,0 +1,4 @@ +#!/bin/bash +LUAJIT_PREFIX="$PREFIX" +LUAJIT_SRC='luajit-2.0/' +[[ -f "$LUAJIT_PREFIX/bin/luajit" ]] || (cd "$LUAJIT_SRC"; make && make PREFIX="$LUAJIT_PREFIX" install) 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 ) -- cgit v1.2.3-70-g09d2