mirror of
https://github.com/msva/lua-htmlparser.git
synced 2024-11-04 23:34:20 +00:00
travis: kicking lj
This commit is contained in:
parent
fa29fdcbb4
commit
1a988101e7
@ -32,16 +32,16 @@ mkdir -p "${LUA_HOME_DIR}"
|
|||||||
|
|
||||||
if [ "${LUAJIT}" == "yes" ]; then
|
if [ "${LUAJIT}" == "yes" ]; then
|
||||||
if [ "${LUA}" == "luajit" ]; then
|
if [ "${LUA}" == "luajit" ]; then
|
||||||
curl -LSs "https://github.com/LuaJIT/LuaJIT/archive/v${LUAJIT_VERSION}.tar.gz" | tar xz
|
curl -LSs "https://github.com/LuaJIT/LuaJIT/archive/v${LUAJIT_VERSION}.tar.gz" | tar xz
|
||||||
else
|
else
|
||||||
git clone https://github.com/LuaJIT/LuaJIT.git -b "${LJ_BRANCH}" "${LUAJIT_BASE}"
|
git clone https://github.com/LuaJIT/LuaJIT.git -b "${LJ_BRANCH}" "${LUAJIT_BASE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "${LUAJIT_BASE}"
|
cd "${LUAJIT_BASE}"
|
||||||
|
|
||||||
if [ "${LUA}" == "luajit2.1" ]; then
|
if [ "${LUA}" == "luajit2.1" ]; then
|
||||||
# force the INSTALL_TNAME to be luajit
|
# force the INSTALL_TNAME to be luajit
|
||||||
perl -i -pe 's/INSTALL_TNAME=.+/INSTALL_TNAME= luajit/' Makefile
|
perl -i -pe 's/INSTALL_TNAME=.+/INSTALL_TNAME= luajit/' Makefile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make && make install PREFIX="${LUA_HOME_DIR}"
|
make && make install PREFIX="${LUA_HOME_DIR}"
|
||||||
@ -50,13 +50,13 @@ if [ "${LUAJIT}" == "yes" ]; then
|
|||||||
ln -s "${LUA_HOME_DIR}/bin/luajit" "${HOME}/.lua/lua"
|
ln -s "${LUA_HOME_DIR}/bin/luajit" "${HOME}/.lua/lua"
|
||||||
else
|
else
|
||||||
if [ "${LUA}" == "lua5.1" ]; then
|
if [ "${LUA}" == "lua5.1" ]; then
|
||||||
suff="ftp/lua-5.1.5.tar.gz"
|
suff="ftp/lua-5.1.5.tar.gz"
|
||||||
elif [ "${LUA}" == "lua5.2" ]; then
|
elif [ "${LUA}" == "lua5.2" ]; then
|
||||||
suff="ftp/lua-5.2.4.tar.gz"
|
suff="ftp/lua-5.2.4.tar.gz"
|
||||||
elif [ "${LUA}" == "lua5.3" ]; then
|
elif [ "${LUA}" == "lua5.3" ]; then
|
||||||
suff="ftp/lua-5.3.5.tar.gz"
|
suff="ftp/lua-5.3.5.tar.gz"
|
||||||
elif [ "${LUA}" == "lua5.4" ]; then
|
elif [ "${LUA}" == "lua5.4" ]; then
|
||||||
suff="work/lua-5.4.0-alpha-rc2.tar.gz"
|
suff="work/lua-5.4.0-alpha-rc2.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir lua_build -p
|
mkdir lua_build -p
|
||||||
|
Loading…
Reference in New Issue
Block a user