Merge pull request #57 from asminozhka/master

Speeded up compilation
This commit is contained in:
Azareal 2019-07-11 14:45:06 +10:00 committed by GitHub
commit a8f2134fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 58 additions and 58 deletions

View File

@ -5,12 +5,12 @@ rm -f tmpl_client/template_*.go
rm -f ./Gosora rm -f ./Gosora
echo "Building the router generator" echo "Building the router generator"
go build -o RouterGen "./router_gen" go build -ldflags="-s -w" -o RouterGen "./router_gen"
echo "Running the router generator" echo "Running the router generator"
./RouterGen ./RouterGen
echo "Building the query generator" echo "Building the query generator"
go build -o QueryGen "./cmd/query_gen" go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
echo "Running the query generator" echo "Running the query generator"
./QueryGen ./QueryGen
@ -19,7 +19,7 @@ easyjson -pkg common
echo "Building Gosora" echo "Building Gosora"
go generate go generate
go build -o Gosora go build -ldflags="-s -w" -o Gosora
echo "Building the installer" echo "Building the installer"
go build -o Installer "./install" go build -ldflags="-s -w" -o Installer "./install"

View File

@ -6,7 +6,7 @@ rm -f ./Gosora
echo "Building the router generator" echo "Building the router generator"
cd ./router_gen cd ./router_gen
go build -o RouterGen go build -ldflags="-s -w" -o RouterGen
mv ./RouterGen .. mv ./RouterGen ..
cd .. cd ..
echo "Running the router generator" echo "Running the router generator"
@ -14,7 +14,7 @@ echo "Running the router generator"
echo "Building the query generator" echo "Building the query generator"
cd ./cmd/query_gen cd ./cmd/query_gen
go build -o QueryGen go build -ldflags="-s -w" -o QueryGen
mv ./QueryGen ../.. mv ./QueryGen ../..
cd ../.. cd ../..
echo "Running the query generator" echo "Running the query generator"
@ -25,10 +25,10 @@ easyjson -pkg common
echo "Building Gosora" echo "Building Gosora"
go generate go generate
go build -o Gosora -tags no_ws go build -ldflags="-s -w" -o Gosora -tags no_ws
echo "Building the installer" echo "Building the installer"
cd ./install cd ./install
go build -o Installer go build -ldflags="-s -w" -o Installer
mv ./Installer .. mv ./Installer ..
cd .. cd ..

View File

@ -16,28 +16,28 @@ echo Generating the JSON handlers
easyjson -pkg common easyjson -pkg common
echo Building the executable echo Building the executable
go build -o gosora.exe -tags no_ws go build -ldflags="-s -w" -o gosora.exe -tags no_ws
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
) )
echo Building the installer echo Building the installer
go build "./cmd/install" go build -ldflags="-s -w" "./cmd/install"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
) )
echo Building the router generator echo Building the router generator
go build ./router_gen go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
) )
echo Building the query generator echo Building the query generator
go build "./cmd/query_gen" go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -18,28 +18,28 @@ echo Generating the JSON handlers
easyjson -pkg common easyjson -pkg common
echo Building the executable echo Building the executable
go build -o gosora.exe go build -ldflags="-s -w" -o gosora.exe
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
) )
echo Building the installer echo Building the installer
go build "./cmd/install" go build -ldflags="-s -w" "./cmd/install"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
) )
echo Building the router generator echo Building the router generator
go build ./router_gen go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
) )
echo Building the query generator echo Building the query generator
go build "./cmd/query_gen" go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -2,7 +2,7 @@ echo Building the templates
gosora.exe -build-templates gosora.exe -build-templates
echo Rebuilding the executable echo Rebuilding the executable
go build -o gosora.exe go build -ldflags="-s -w" -o gosora.exe
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -1,6 +1,6 @@
@echo off @echo off
echo Building the query generator echo Building the query generator
go build go build -ldflags="-s -w"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -1,6 +1,6 @@
@echo off @echo off
echo Building the query generator echo Building the query generator
go build go build -ldflags="-s -w"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -9,5 +9,5 @@ git stash apply
echo "Patching Gosora" echo "Patching Gosora"
go generate go generate
go build -o Patcher "./patcher" go build -ldflags="-s -w" -o Patcher "./patcher"
./Patcher ./Patcher

View File

@ -1,4 +1,4 @@
echo "Building the patcher" echo "Building the patcher"
go generate go generate
go get -u github.com/mailru/easyjson/... go get -u github.com/mailru/easyjson/...
go build -o Patcher "./patcher" go build -ldflags="-s -w" -o Patcher "./patcher"

View File

@ -28,5 +28,5 @@ if %errorlevel% neq 0 (
echo Patching Gosora echo Patching Gosora
go generate go generate
go build ./patcher go build -ldflags="-s -w" ./patcher
patcher.exe patcher.exe

View File

@ -9,7 +9,7 @@ if %errorlevel% neq 0 (
echo Building the updater echo Building the updater
go generate go generate
go build ./updater go build -ldflags="-s -w" ./updater
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -2,6 +2,6 @@ go get -u github.com/mailru/easyjson/...
easyjson -pkg common easyjson -pkg common
go get go get
go build -o Installer "./cmd/install" go build -ldflags="-s -w" -o Installer "./cmd/install"
./Installer --dbType=mysql --dbHost=localhost --dbUser=$MYSQL_USER --dbPassword=$MYSQL_PASSWORD --dbName=$MYSQL_DATABASE --shortSiteName=$SITE_SHORT_NAME --siteName=$SITE_NAME --siteURL=$SITE_URL --serverPort=$SERVER_PORT--secureServerPort=$SECURE_SERVER_PORT ./Installer --dbType=mysql --dbHost=localhost --dbUser=$MYSQL_USER --dbPassword=$MYSQL_PASSWORD --dbName=$MYSQL_DATABASE --shortSiteName=$SITE_SHORT_NAME --siteName=$SITE_NAME --siteURL=$SITE_URL --serverPort=$SERVER_PORT--secureServerPort=$SECURE_SERVER_PORT

View File

@ -4,7 +4,7 @@ easyjson -pkg common
go get go get
echo "Building the installer" echo "Building the installer"
go build -o Installer "./cmd/install" go build -ldflags="-s -w" -o Installer "./cmd/install"
echo "Running the installer" echo "Running the installer"
./Installer ./Installer

View File

@ -21,7 +21,7 @@ if %errorlevel% neq 0 (
echo Building the installer echo Building the installer
go generate go generate
go build "./cmd/install" go build -ldflags="-s -w" "./cmd/install"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -11,20 +11,20 @@ echo "Generating the JSON handlers"
easyjson -pkg common easyjson -pkg common
echo "Building the router generator" echo "Building the router generator"
go build -o RouterGen "./router_gen" go build -ldflags="-s -w" -o RouterGen "./router_gen"
echo "Running the router generator" echo "Running the router generator"
./RouterGen ./RouterGen
echo "Building the query generator" echo "Building the query generator"
go build -o QueryGen "./cmd/query_gen" go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
echo "Running the query generator" echo "Running the query generator"
./QueryGen ./QueryGen
echo "Building Gosora" echo "Building Gosora"
go build -o Gosora go build -ldflags="-s -w" -o Gosora
echo "Building the templates" echo "Building the templates"
./Gosora -build-templates ./Gosora -build-templates
echo "Building Gosora... Again" echo "Building Gosora... Again"
go build -o Gosora go build -ldflags="-s -w" -o Gosora

View File

@ -4,5 +4,5 @@ git pull origin master
git stash apply git stash apply
echo "Patching Gosora" echo "Patching Gosora"
go build -o Patcher "./patcher" go build -ldflags="-s -w" -o Patcher "./patcher"
./Patcher ./Patcher

View File

@ -1,6 +1,6 @@
@echo off @echo off
echo Building the router generator echo Building the router generator
go build go build -ldflags="-s -w"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -1,6 +1,6 @@
@echo off @echo off
echo Building the router generator echo Building the router generator
go build go build -ldflags="-s -w"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -8,12 +8,12 @@ echo "Generating the dynamic code"
go generate go generate
echo "Building the router generator" echo "Building the router generator"
go build -o RouterGen "./router_gen" go build -ldflags="-s -w" -o RouterGen "./router_gen"
echo "Running the router generator" echo "Running the router generator"
./RouterGen ./RouterGen
echo "Building the query generator" echo "Building the query generator"
go build -o QueryGen "./cmd/query_gen" go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
echo "Running the query generator" echo "Running the query generator"
./QueryGen ./QueryGen
@ -21,13 +21,13 @@ echo "Generating the JSON handlers"
easyjson -pkg common easyjson -pkg common
echo "Building Gosora" echo "Building Gosora"
go build -o Gosora go build -ldflags="-s -w" -o Gosora
echo "Building the templates" echo "Building the templates"
./Gosora -build-templates ./Gosora -build-templates
echo "Building Gosora... Again" echo "Building Gosora... Again"
go build -o Gosora go build -ldflags="-s -w" -o Gosora
echo "Running Gosora" echo "Running Gosora"
./Gosora ./Gosora

View File

@ -9,7 +9,7 @@ go generate
echo "Building the router generator" echo "Building the router generator"
cd ./router_gen cd ./router_gen
go build -o RouterGen go build -ldflags="-s -w" -o RouterGen
mv ./RouterGen .. mv ./RouterGen ..
cd .. cd ..
echo "Running the router generator" echo "Running the router generator"
@ -17,7 +17,7 @@ echo "Running the router generator"
echo "Building the query generator" echo "Building the query generator"
cd ./cmd/query_gen cd ./cmd/query_gen
go build -o QueryGen go build -ldflags="-s -w" -o QueryGen
mv ./QueryGen ../.. mv ./QueryGen ../..
cd ../.. cd ../..
echo "Running the query generator" echo "Running the query generator"
@ -27,13 +27,13 @@ echo "Generating the JSON handlers"
easyjson -pkg common easyjson -pkg common
echo "Building Gosora" echo "Building Gosora"
go build -o Gosora -tags no_ws go build -ldflags="-s -w" -o Gosora -tags no_ws
echo "Building the templates" echo "Building the templates"
./Gosora -build-templates ./Gosora -build-templates
echo "Building Gosora... Again" echo "Building Gosora... Again"
go build -o Gosora -tags no_ws go build -ldflags="-s -w" -o Gosora -tags no_ws
echo "Running Gosora" echo "Running Gosora"
./Gosora ./Gosora

View File

@ -3,5 +3,5 @@ go generate
echo Generating the JSON handlers echo Generating the JSON handlers
easyjson -pkg common easyjson -pkg common
echo "Running tests" echo "Running tests"
go build -o mssqlBuild -tags mssql go build -ldflags="-s -w" -o mssqlBuild -tags mssql
go test -coverprofile c.out go test -coverprofile c.out

View File

@ -15,7 +15,7 @@ if %errorlevel% neq 0 (
) )
echo Building the router generator echo Building the router generator
go build ./router_gen go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -28,7 +28,7 @@ if %errorlevel% neq 0 (
) )
echo Building the query generator echo Building the query generator
go build "./cmd/query_gen" go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -44,7 +44,7 @@ echo Generating the JSON handlers
easyjson -pkg common easyjson -pkg common
echo Building the executable echo Building the executable
go build -o gosora.exe -tags no_ws go build -ldflags="-s -w" -o gosora.exe -tags no_ws
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -58,7 +58,7 @@ if %errorlevel% neq 0 (
) )
echo Building the executable... again echo Building the executable... again
go build -o gosora.exe -tags no_ws go build -ldflags="-s -w" -o gosora.exe -tags no_ws
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -15,7 +15,7 @@ if %errorlevel% neq 0 (
) )
echo Building the router generator echo Building the router generator
go build ./router_gen go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -28,7 +28,7 @@ if %errorlevel% neq 0 (
) )
echo Building the query generator echo Building the query generator
go build "./cmd/query_gen" go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -44,7 +44,7 @@ echo Generating the JSON handlers
easyjson -pkg common easyjson -pkg common
echo Building the executable echo Building the executable
go build -o gosora.exe go build -ldflags="-s -w" -o gosora.exe
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -58,7 +58,7 @@ if %errorlevel% neq 0 (
) )
echo Building the executable... again echo Building the executable... again
go build -o gosora.exe go build -ldflags="-s -w" -o gosora.exe
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -15,7 +15,7 @@ if %errorlevel% neq 0 (
) )
echo Building the router generator echo Building the router generator
go build ./router_gen go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -28,7 +28,7 @@ if %errorlevel% neq 0 (
) )
echo Building the query generator echo Building the query generator
go build "./cmd/query_gen" go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -44,7 +44,7 @@ echo Generating the JSON handlers
easyjson -pkg common easyjson -pkg common
echo Building the executable echo Building the executable
go build -o gosora.exe -tags mssql go build -ldflags="-s -w" -o gosora.exe -tags mssql
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -58,7 +58,7 @@ if %errorlevel% neq 0 (
) )
echo Building the executable... again echo Building the executable... again
go build -o gosora.exe -tags mssql go build -ldflags="-s -w" -o gosora.exe -tags mssql
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -15,7 +15,7 @@ if %errorlevel% neq 0 (
) )
echo Building the router generator echo Building the router generator
go build ./router_gen go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -28,7 +28,7 @@ if %errorlevel% neq 0 (
) )
echo Building the query generator echo Building the query generator
go build "./cmd/query_gen" go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%

View File

@ -15,7 +15,7 @@ if %errorlevel% neq 0 (
) )
echo Building the router generator echo Building the router generator
go build ./router_gen go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%
@ -28,7 +28,7 @@ if %errorlevel% neq 0 (
) )
echo Building the query generator echo Building the query generator
go build "./cmd/query_gen" go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
pause pause
exit /b %errorlevel% exit /b %errorlevel%