diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-22 02:54:19 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-22 02:54:19 +0900 |
commit | 24fa183297865aadab0fb91e1ea0bb4fb1491db4 (patch) | |
tree | 426e99f7508a45e3519e2f4ae846a341f664171b /src | |
parent | 131aa5dd15788875e796bbd2f2bfdf644584284a (diff) |
make deps
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 1 | ||||
-rwxr-xr-x | src/deps | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index 00df49df..77a40944 100644 --- a/src/Makefile +++ b/src/Makefile @@ -51,6 +51,7 @@ $(SRCDIR): deps: $(SRCDIR) $(SOURCES) cd $(SRCDIR) && go get -tags "$(TAGS)" + ./deps android-build: $(SRCDIR) cd $(SRCDIR) && GOARCH=arm GOARM=7 CGO_ENABLED=1 go get diff --git a/src/deps b/src/deps new file mode 100755 index 00000000..f384dcf1 --- /dev/null +++ b/src/deps @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +if [ -z "$GOPATH" ]; then + echo '$GOPATH not defined' + exit 1 +fi + +reset() ( + cd "$GOPATH/src/$1" + [ "$(git rev-parse HEAD)" = "$2" ] || + (git fetch && git reset --hard "$2") +) + +reset github.com/junegunn/go-isatty 66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8 +reset github.com/junegunn/go-runewidth 63c378b851290989b19ca955468386485f118c65 +reset github.com/junegunn/go-shellwords 33bd8f1ebe16d6e5eb688cc885749a63059e9167 +reset golang.org/x/crypto abc5fa7ad02123a41f02bf1391c9760f7586e608 |