release: Add release scripts.

This commit is contained in:
Harshavardhana
2015-11-19 21:04:57 -08:00
parent 79474d117f
commit d08392ba40
3 changed files with 10 additions and 4 deletions
-4
View File
@@ -70,10 +70,6 @@ pkg-update:
pkg-remove:
@GO15VENDOREXPERIMENT=1 govendor remove $(PKG)
release: build
@MINIO_RELEASE=OFFICIAL GO15VENDOREXPERIMENT=1 go build --ldflags $(BUILD_LDFLAGS) -o $(GOPATH)/bin/mc
@mkdir -p $(HOME)/.mc
install: gomake-all
clean:
+4
View File
@@ -0,0 +1,4 @@
SET MC_RELEASE=OFFICIAL
go run buildscripts/gen-ldflags.go > temp.txt
SET /p LDFLAGS=<temp.txt
go build -ldflags="%LDFLAGS%" -o %GOPATH%\bin\mc.exe
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
echo -n "Making official release binaries.. "
export MC_RELEASE=OFFICIAL
make 1>/dev/null
echo "Binaries built at ${GOPATH}/bin/mc"