зеркало из https://github.com/mislav/hub.git
Simplify installation instructions from source
This commit is contained in:
Родитель
04128caaa4
Коммит
56c35712b6
23
README.md
23
README.md
|
@ -71,11 +71,11 @@ in your executable path.
|
|||
|
||||
#### Source
|
||||
|
||||
To install hub from source:
|
||||
With your [GOPATH](https://github.com/golang/go/wiki/GOPATH) already set up:
|
||||
|
||||
``` sh
|
||||
$ git clone https://github.com/github/hub.git
|
||||
$ cd hub
|
||||
$ go get github.com/github/hub
|
||||
$ cd "$GOPATH"/src/github.com/github/hub
|
||||
$ make install prefix=/usr/local
|
||||
```
|
||||
|
||||
|
@ -85,23 +85,6 @@ Prerequisites for compilation are:
|
|||
* [Go 1.8+](http://golang.org/doc/install)
|
||||
* Ruby 1.9+ with Bundler - for generating man pages
|
||||
|
||||
If you don't have `make`, Ruby, or want to skip man pages (for example, if you
|
||||
are on Windows), you can build only the `hub` binary:
|
||||
|
||||
``` sh
|
||||
$ ./script/build
|
||||
```
|
||||
|
||||
You can now move `bin/hub` to somewhere in your PATH.
|
||||
|
||||
Finally, if you've done Go development before and your `$GOPATH/bin` directory
|
||||
is already in your PATH, this is an alternative installation method that fetches
|
||||
hub into your GOPATH and builds it automatically:
|
||||
|
||||
``` sh
|
||||
$ go get github.com/github/hub
|
||||
```
|
||||
|
||||
Aliasing
|
||||
--------
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче