Skip to content

Commit

Permalink
Make gpm get the default action, bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
pote committed Jan 20, 2016
1 parent 6fb3e62 commit fef7bf2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ Caveat: you'll use `go-gpm` instead of just `gpm` in the command line, as there
Latest stable release:

```bash
$ wget https://raw.githubusercontent.com/pote/gpm/v1.3.2/bin/gpm && chmod +x gpm && sudo mv gpm /usr/local/bin
$ wget https://raw.githubusercontent.com/pote/gpm/v1.4.0/bin/gpm && chmod +x gpm && sudo mv gpm /usr/local/bin
```

### Manually on *nix

```bash
$ git clone https://github.com/pote/gpm.git && cd gpm
$ git checkout v1.3.2 # You can ignore this part if you want to install HEAD.
$ git checkout v1.4.0 # You can ignore this part if you want to install HEAD.
$ ./configure
$ make install
```
Expand All @@ -56,10 +56,10 @@ As gpm is a bash script you can always use it directly from GitHub via `wget` or

```bash
## With wget
$ wget -qO- https://raw.githubusercontent.com/pote/gpm/v1.3.2/bin/gpm | bash
$ wget -qO- https://raw.githubusercontent.com/pote/gpm/v1.4.0/bin/gpm | bash

## With cURL
$ curl -s https://raw.githubusercontent.com/pote/gpm/v1.3.2/bin/gpm | bash
$ curl -s https://raw.githubusercontent.com/pote/gpm/v1.4.0/bin/gpm | bash
```

## The Godeps file
Expand Down
12 changes: 6 additions & 6 deletions bin/gpm
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ SYNOPSIS
has its own isolated dependency directory, its usage is recommended.
USAGE
$ gpm # Same as 'install'.
$ gpm # Same as 'gpm get'.
$ gpm get # Parses the Godeps file, gets dependencies and sets them
# to the appropriate version but does not install them.
$ gpm install # Parses the Godeps file, installs dependencies and sets
# them to the appropriate version.
# to the appropriate version but does not install them.
$ gpm install # Parses the Godeps file, installs dependencies, sets
# them to the appropriate version and precompiles/installs them.
$ gpm version # Outputs version information
$ gpm help # Prints this message
EOF
Expand Down Expand Up @@ -97,9 +97,9 @@ install_dependencies() {
## /Functions

## Command Line Parsing
case "${1:-"install"}" in
case "${1:-"get"}" in
"version")
echo ">> gpm v1.3.2"
echo ">> gpm v1.4.0"
;;
"install")
(get_dependencies "${2:-"Godeps"}" | install_dependencies) 3>&1
Expand Down

0 comments on commit fef7bf2

Please sign in to comment.