Simplify installation instructions from source

This commit is contained in:
Mislav Marohnić 2018-06-09 19:02:42 +02:00
Родитель 04128caaa4
Коммит 56c35712b6
1 изменённых файлов: 3 добавлений и 20 удалений

Просмотреть файл

@ -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
--------