install.sh 440 B

12345678910111213141516171819
  1. #!/bin/bash
  2. PREFIX=${IROOT}/nginx_mruby
  3. RETCODE=$(fw_exists ${IROOT}/nginx_mruby.installed)
  4. [ ! "$RETCODE" == 0 ] || { return 0; }
  5. fw_depends rvm
  6. rvm install ruby-2.0.0-p0
  7. rvm use ruby-2.0.0-p0
  8. git clone git://github.com/matsumoto-r/ngx_mruby.git
  9. cd ngx_mruby
  10. git submodule init
  11. git submodule update
  12. NGINX_CONFIG_OPT_ENV="--prefix=${PREFIX} --with-http_stub_status_module" sh build.sh
  13. make install
  14. touch ${IROOT}/nginx_mruby.installed