release: Add release scripts.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
@@ -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"
|
||||
Reference in New Issue
Block a user