feature: added new command-line utility, "resty", to run Lua code or Lua files (for OpenResty) directly from the command-line. it is installed into the "<prefix>/bin" directory. prodded by Vitaly Kosenko.

This commit is contained in:
Yichun Zhang (agentzh)
2014-08-20 14:58:58 -07:00
parent aa33a9e752
commit 399bdecaef
4 changed files with 212 additions and 3 deletions

6
util/configure vendored
View File

@ -312,6 +312,8 @@ push @make_cmds, "cd $root_dir/build/$ngx_dir && "
push @make_install_cmds, "cd $root_dir/build/$ngx_dir && "
. "\$(MAKE) install DESTDIR=\$(DESTDIR)";
push @make_install_cmds, "cd $root_dir/build && ./install resty \$(DESTDIR)/$prefix/bin/";
cd '../..'; # to the root
#die "pwd: " .. `pwd`;
@ -468,8 +470,8 @@ _END_
die "failed to remove directory build/.\n";
}
if (-f 'build') {
die "file \"build\" already exists. please remove it first.\n";
if (-e 'build') {
die "file or directory \"build\" already exists. please remove it first.\n";
}
shell "cp -rp bundle/ build";