Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/SparrowDb/sparrowdb
Browse files Browse the repository at this point in the history
  • Loading branch information
mausimag committed Mar 26, 2017
2 parents e792727 + 4c46c88 commit b4947d0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@ECHO off
IF "%GOROOT%"=="" (
ECHO GOHOME not defined
GOTO exit
)

IF NOT EXIST "%GOROOT%bin\go.exe" (
ECHO GO not found
GOTO exit
)

SET GO="%GOROOT%bin\go.exe"

ECHO Generating SparrowDb binaries
IF EXIST "dist" (
RMDIR /s /q dist
)
MKDIR dist

ECHO Building ...
%GO% build -o dist/sparrow.exe .
%GO% build -o dist/commander.exe tools/commander/commander.go
%GO% build -o dist/datafile.exe tools/datafile/datafile.go

ECHO Copying ...
ROBOCOPY scripts dist/scripts
ROBOCOPY config dist/config
XCOPY /f README.md dist/
XCOPY /f LICENCE dist/

:exit
ECHO Done

0 comments on commit b4947d0

Please sign in to comment.