Skip to content

Commit

Permalink
Give a proper version number
Browse files Browse the repository at this point in the history
  • Loading branch information
moncho committed Dec 8, 2015
1 parent d8b966b commit d6a0bfc
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 6 deletions.
46 changes: 46 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,48 @@
###Go###

# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test


###OSX###

.DS_Store
.AppleDouble
.LSOverride

# Icon must ends with two \r.
Icon


# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

binaries
cross
dry
Godeps/_workspace/
2 changes: 1 addition & 1 deletion APPVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
0.1.0-beta
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ GO_LDFLAGS_STATIC=-ldflags "-w $(CTIMEVAR) -extldflags -static"
GOOSES = darwin freebsd linux windows
GOARCHS = amd64 386

define buildpretty
mkdir -p ${PREFIX}/cross/$(1)/$(2);
GOOS=$(1) GOARCH=$(2) CGO_ENABLED=0 go build -o ${PREFIX}/cross/$(1)/$(2)/dry -a -tags "static_build netgo" -installsuffix netgo ${GO_LDFLAGS_STATIC} .;
endef

run:
go run ./main.go

Expand All @@ -30,6 +25,11 @@ build:
install:
go install $(PKG)

define buildpretty
mkdir -p ${PREFIX}/cross/$(1)/$(2);
GOOS=$(1) GOARCH=$(2) CGO_ENABLED=0 go build -o ${PREFIX}/cross/$(1)/$(2)/dry -a -tags "static_build netgo" -installsuffix netgo ${GO_LDFLAGS_STATIC} .;
endef

cross: *.go VERSION
$(foreach GOARCH,$(GOARCHS),$(foreach GOOS,$(GOOSES),$(call buildpretty,$(GOOS),$(GOARCH))))

Expand Down

0 comments on commit d6a0bfc

Please sign in to comment.