diff --git a/util/configure b/util/configure index eb8f65b..5e309e7 100755 --- a/util/configure +++ b/util/configure @@ -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: { diff --git a/util/mirror-tarballs b/util/mirror-tarballs index d37080a..5e88e1f 100755 --- a/util/mirror-tarballs +++ b/util/mirror-tarballs @@ -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