浏览代码

move unstable install and upgrade to local namespace

pull/1029/head
Tristan Sloughter 9 年前
父节点
当前提交
42113a0364
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. +2
    -2
      README.md
  2. +1
    -1
      src/rebar_prv_local_install.erl
  3. +1
    -1
      src/rebar_prv_local_upgrade.erl

+ 2
- 2
README.md 查看文件

@ -74,13 +74,13 @@ Stable versions can be obtained from the [releases page](https://github.com/reba
The rebar3 escript can also extract itself with a run script under the user's home directory: The rebar3 escript can also extract itself with a run script under the user's home directory:
```bash ```bash
$ ./rebar3 unstable install
$ ./rebar3 local install
===> Extracting rebar3 libs to ~/.cache/rebar3/lib... ===> Extracting rebar3 libs to ~/.cache/rebar3/lib...
===> Writing rebar3 run script ~/.cache/rebar3/bin/rebar3... ===> Writing rebar3 run script ~/.cache/rebar3/bin/rebar3...
===> Add to $PATH for use: export PATH=$PATH:~/.cache/rebar3/bin ===> Add to $PATH for use: export PATH=$PATH:~/.cache/rebar3/bin
``` ```
To keep it up to date after you've installed rebar3 this way you can use `rebar3 unstable upgrade` which
To keep it up to date after you've installed rebar3 this way you can use `rebar3 local upgrade` which
fetches the latest nightly and extracts to the same place as above. fetches the latest nightly and extracts to the same place as above.
Rebar3 may also be available on various OS-specific package managers such as Rebar3 may also be available on various OS-specific package managers such as

+ 1
- 1
src/rebar_prv_local_install.erl 查看文件

@ -15,7 +15,7 @@
-include_lib("kernel/include/file.hrl"). -include_lib("kernel/include/file.hrl").
-define(PROVIDER, install). -define(PROVIDER, install).
-define(NAMESPACE, unstable).
-define(NAMESPACE, local).
-define(DEPS, []). -define(DEPS, []).
%% =================================================================== %% ===================================================================

+ 1
- 1
src/rebar_prv_local_upgrade.erl 查看文件

@ -14,7 +14,7 @@
-include_lib("kernel/include/file.hrl"). -include_lib("kernel/include/file.hrl").
-define(PROVIDER, upgrade). -define(PROVIDER, upgrade).
-define(NAMESPACE, unstable).
-define(NAMESPACE, local).
-define(DEPS, []). -define(DEPS, []).
%% =================================================================== %% ===================================================================

正在加载...
取消
保存