added new command-line utility, opm, for managing community contributed OpenResty packages.
This commit is contained in:
parent
6343d26c17
commit
efe10e532c
|
@ -958,6 +958,19 @@ _EOC_
|
|||
}
|
||||
}
|
||||
|
||||
# configure opm:
|
||||
{
|
||||
my $opm_dir = auto_complete 'opm';
|
||||
my $target_dir;
|
||||
if ($platform eq 'msys') {
|
||||
$target_dir = "\$(DESTDIR)$prefix/";
|
||||
} else {
|
||||
$target_dir = "\$(DESTDIR)$prefix/bin/";
|
||||
}
|
||||
push @make_install_cmds, "cd $root_dir/build/$opm_dir && "
|
||||
. "$root_dir/build/install bin/* $target_dir";
|
||||
}
|
||||
|
||||
# configure resty-cli:
|
||||
|
||||
{
|
||||
|
|
|
@ -513,6 +513,13 @@ resty_cli=resty-cli-$ver
|
|||
|
||||
#################################
|
||||
|
||||
ver=0.0.1
|
||||
$root/util/get-tarball "https://github.com/openresty/opm/tarball/v$ver" -O opm-$ver.tar.gz || exit 1
|
||||
tar -xzf opm-$ver.tar.gz || exit 1
|
||||
mv openresty-opm-* opm-$ver || exit 1
|
||||
|
||||
#################################
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue