bundled the new lua-resty-lock library.
This commit is contained in:
parent
937985fc03
commit
f0a2f6543e
|
@ -179,6 +179,9 @@ for my $opt (@ARGV) {
|
|||
} elsif ($opt eq '--without-lua_resty_websocket') {
|
||||
$resty_opts{no_lua_resty_websocket} = 1;
|
||||
|
||||
} elsif ($opt eq '--without-lua_resty_lock') {
|
||||
$resty_opts{no_lua_resty_lock} = 1;
|
||||
|
||||
} elsif ($opt eq '--without-lua_rds_parser') {
|
||||
$resty_opts{no_lua_rds_parser} = 1;
|
||||
|
||||
|
@ -783,7 +786,9 @@ _EOC_
|
|||
"\$(MAKE) install$extra_opts";
|
||||
}
|
||||
|
||||
for my $key (qw(dns memcached redis mysql string upload websocket)) {
|
||||
for my $key (qw(dns memcached redis mysql string upload websocket
|
||||
lock))
|
||||
{
|
||||
unless ($opts->{"no_lua_resty_$key"}) {
|
||||
my $name = "lua-resty-$key";
|
||||
my $dir = auto_complete $name;
|
||||
|
@ -905,6 +910,7 @@ _EOC_
|
|||
--without-lua_resty_upload disable the lua-resty-upload library
|
||||
--without-lua_resty_string disable the lua-resty-string library
|
||||
--without-lua_resty_websocket disable the lua-resty-websocket library
|
||||
--without-lua_resty_lock disable the lua-resty-lock library
|
||||
|
||||
--without-lua51 disable the bundled Lua 5.1 interpreter
|
||||
--with-lua51=PATH specify the external installation of Lua 5.1 by PATH
|
||||
|
|
|
@ -464,6 +464,13 @@ mv agentzh-lua-resty-websocket-* lua-resty-websocket-$ver || exit 1
|
|||
|
||||
#################################
|
||||
|
||||
ver=0.01
|
||||
$root/util/get-tarball "http://github.com/agentzh/lua-resty-lock/tarball/v$ver" -O "lua-resty-lock-$ver.tar.gz" || exit 1
|
||||
tar -xzf lua-resty-lock-$ver.tar.gz || exit 1
|
||||
mv agentzh-lua-resty-lock-* lua-resty-lock-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
rm *.tar.gz
|
||||
|
||||
cd ..
|
||||
|
|
Loading…
Reference in New Issue