Skip to content

Commit

Permalink
update build*.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Jun 9, 2017
1 parent 4940662 commit 1a55e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions build-k.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
FOR /F "usebackq" %%w IN (`git rev-parse --short HEAD`) DO SET COMMIT=%%w

FOR /F "usebackq" %%w IN (`git describe --tags --abbrev^=0`) DO SET VERSION=%%w

set VERSION=%VERSION:v=%

echo %VERSION%

go build -o build/mackerel-agent-kcps.exe -ldflags="-X main.gitcommit=%COMMIT% -X main.version=%VERSION% -X github.com/mackerelio/mackerel-agent/config.apibase=http://198.18.0.16 " github.com/mackerelio/mackerel-agent
go build -o build/mackerel-agent-kcps.exe -ldflags="-X main.gitcommit=%COMMIT% -X github.com/mackerelio/mackerel-agent/config.apibase=http://198.18.0.16 " github.com/mackerelio/mackerel-agent
8 changes: 1 addition & 7 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@ echo on

FOR /F "usebackq" %%w IN (`git rev-parse --short HEAD`) DO SET COMMIT=%%w

FOR /F "usebackq" %%w IN (`git describe --tags --abbrev^=0`) DO SET VERSION=%%w

set VERSION=%VERSION:v=%

echo %VERSION%

go build -o build/mackerel-agent.exe -ldflags="-X main.gitcommit=%COMMIT% -X main.version=%VERSION% " github.com/mackerelio/mackerel-agent
go build -o build/mackerel-agent.exe -ldflags="-X main.gitcommit=%COMMIT% " github.com/mackerelio/mackerel-agent

0 comments on commit 1a55e1f

Please sign in to comment.