upgraded the standard lua interpreter to 5.1.5; also disabled the Lua 5.0 compatibility in this Lua implementation.
This commit is contained in:
parent
37bbfd4378
commit
ebed2ed1c2
|
@ -235,23 +235,20 @@ mv agentzh-redis2-nginx-module-* redis2-nginx-module-$ver || exit 1
|
|||
|
||||
#################################
|
||||
|
||||
ver=5.1.4
|
||||
ver=5.1.5
|
||||
$root/util/get-tarball "http://www.lua.org/ftp/lua-$ver.tar.gz" -O "lua-$ver.tar.gz" || exit 1
|
||||
tar -xzf lua-$ver.tar.gz || exit 1
|
||||
|
||||
$root/util/get-tarball "http://agentzh.org/misc/nginx/patch-lua-$ver-4" -O "patch-lua-$ver-4" || exit 1
|
||||
#$root/util/get-tarball "http://agentzh.org/misc/nginx/patch-lua-$ver-4" -O "patch-lua-$ver-4" || exit 1
|
||||
|
||||
cd lua-$ver/src || exit 1
|
||||
patch -p0 < ../../patch-lua-$ver-4 || exit 1
|
||||
cd ../.. || exit 1
|
||||
#cd lua-$ver/src || exit 1
|
||||
#patch -p0 < ../../patch-lua-$ver-4 || exit 1
|
||||
#cd ../.. || exit 1
|
||||
|
||||
rm "patch-lua-$ver-4" || exit 1
|
||||
#rm "patch-lua-$ver-4" || exit 1
|
||||
|
||||
cp $root/patches/lua-$ver-makefile_install_fix.patch lua-makefile-fix.patch || exit 1
|
||||
|
||||
patch -p0 < lua-makefile-fix.patch || exit 1
|
||||
|
||||
rm lua-makefile-fix.patch || exit 1
|
||||
patch -p0 < $root/patches/lua-$ver-makefile_install_fix.patch || exit 1
|
||||
patch -p0 < $root/patches/lua-$ver-disable_lua50_compat.patch || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
|
|
Loading…
Reference in New Issue