myokoym / grnenv

Make Groonga build easy. Inspired by rbenv.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grnenv Build Status

Make Groonga build easy. Inspired by rbenv.

Requirements

  • Bash
  • Autotools

Install

$ git clone https://github.com/myokoym/grnenv ~/.grnenv
$ export GRNENV_HOME=~/.grnenv
$ export PATH=$GRNENV_HOME/bin:$GRNENV_HOME/shims:$PATH

Usage

Build

$ grnenv build 5.1.2  # Specify Groonga version

Switch version

Global

$ grnenv global 5.1.2
$ groonga --version  # 5.1.2
$ cd ..
$ groonga --version  # 5.1.2

Only current directory

$ grnenv build 1.0.0
...
$ grnenv local 1.0.0
$ cat .groonga-version
1.0.0
$ groonga --version  # 1.0.0
$ cd ..
$ groonga --version  # 5.1.2

Use system installed Groonga

If Groonga is installed in /tmp/local:

$ grnenv local system
$ cat .groonga-version
system
$ which groonga
/tmp/local/bin/groonga

Export paths

The following command exports the current version's paths to LD_LIBRARY_PATH and PKG_CONFIG_PATH.

$ eval "$(grnenv export)"

Plugin

Install

$ grnenv plugin-install https://github.com/myokoym/groonga-plugin-default_encoding

Uninstall

$ grnenv plugin-uninstall groonga-plugin-default_encoding

About

Make Groonga build easy. Inspired by rbenv.

License:MIT License


Languages

Language:Shell 100.0%