Skip to content

Commit

Permalink
Add x-compile build, rewrite deps to vendored paths
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-vin committed Nov 29, 2015
1 parent 4a06d32 commit 836074e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ _testmain.go

# Common files
*~
issuechk_*
issuechk
8 changes: 7 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@
set -e
set -x

if [[ $1 == "xc" ]] ; then
BUILDTOOL="gox"
else
BUILDTOOL="godep go build"
fi

VERSION=$(git describe --dirty --all)
godep go build -ldflags="-X main.Version=$VERSION" ./cmd/issuechk
$BUILDTOOL -ldflags="-X main.Version=$VERSION" ./cmd/issuechk
2 changes: 1 addition & 1 deletion cmd/issuechk/issuechk.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"bufio"
"flag"
"fmt"
"github.com/google/go-github/github"
"github.com/evecon/issuechk/Godeps/_workspace/src/github.com/google/go-github/github"
"os"
"regexp"
"strconv"
Expand Down

0 comments on commit 836074e

Please sign in to comment.