From 0c1f102dff9e06ee5c255ba9a20d54328ec29b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= Date: Wed, 16 Feb 2011 17:30:31 +0800 Subject: [PATCH] now we also bundle the standard lua 5.1 with the official hotfix patch. --- .gitignore | 1 + util/mirror-tarballs | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1381dc1..30eab2d 100644 --- a/.gitignore +++ b/.gitignore @@ -65,3 +65,4 @@ util/blog-rows.sql util/comments.sql util/posts.sql ngx_openresty-* +work/ diff --git a/util/mirror-tarballs b/util/mirror-tarballs index 13657ce..b1b6fb1 100755 --- a/util/mirror-tarballs +++ b/util/mirror-tarballs @@ -145,12 +145,26 @@ mv ngx_http_auth_request_module-* auth-request-nginx-module-$ver || exit 1 ################################# ver=0.8 -$root/util/get-tarball "https://github.com/FRiCKLE/ngx_postgres/tarball/0.8" -O ngx_postgres-$ver.tar.gz || exit 1 +$root/util/get-tarball "https://github.com/FRiCKLE/ngx_postgres/tarball/$ver" -O ngx_postgres-$ver.tar.gz || exit 1 tar -xzf ngx_postgres-$ver.tar.gz || exit 1 mv FRiCKLE-ngx_postgres-* ngx_postgres-$ver || exit 1 ################################# +ver=5.1.4 +$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://www.lua.org/ftp/patch-lua-$ver-2" -O "patch-lua-$ver-2" || exit 1 + +cd lua-$ver/src || exit 1 +patch -p0 < ../../patch-lua-$ver-2 || exit 1 +cd ../.. || exit 1 + +rm "patch-lua-$ver-2" || exit 1 + +################################# + rm *.tar.gz cd ..