Skip to content

Commit

Permalink
update dist scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mausimag committed Mar 28, 2017
1 parent b4947d0 commit 885ca1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 3 additions & 10 deletions make.bat
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
@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"
SET GO="go"

ECHO Generating SparrowDb binaries
IF EXIST "dist" (
Expand All @@ -27,6 +18,8 @@ ROBOCOPY scripts dist/scripts
ROBOCOPY config dist/config
XCOPY /f README.md dist/
XCOPY /f LICENCE dist/
MKDIR dist/web
ROBOCOPY web/static dist/web/static /e

:exit
ECHO Done
2 changes: 2 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ go build -o dist/datafile tools/datafile/datafile.go
echo "Copying ..."
cp -r scripts dist/scripts
cp -r config dist/config
mkdir dist/web
cp -r web/static dist/web/static

echo "Done !"

0 comments on commit 885ca1d

Please sign in to comment.