Speeded up compilation

This commit is contained in:
asminozhka 2019-07-10 18:33:07 +03:00
parent 8cf9badd46
commit 90e204bf99
26 changed files with 58 additions and 58 deletions

View File

@ -5,12 +5,12 @@ rm -f tmpl_client/template_*.go
rm -f ./Gosora
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"
./RouterGen
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"
./QueryGen
@ -19,7 +19,7 @@ easyjson -pkg common
echo "Building Gosora"
go generate
go build -o Gosora
go build -ldflags="-s -w" -o Gosora
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"
cd ./router_gen
go build -o RouterGen
go build -ldflags="-s -w" -o RouterGen
mv ./RouterGen ..
cd ..
echo "Running the router generator"
@ -14,7 +14,7 @@ echo "Running the router generator"
echo "Building the query generator"
cd ./cmd/query_gen
go build -o QueryGen
go build -ldflags="-s -w" -o QueryGen
mv ./QueryGen ../..
cd ../..
echo "Running the query generator"
@ -25,10 +25,10 @@ easyjson -pkg common
echo "Building Gosora"
go generate
go build -o Gosora -tags no_ws
go build -ldflags="-s -w" -o Gosora -tags no_ws
echo "Building the installer"
cd ./install
go build -o Installer
go build -ldflags="-s -w" -o Installer
mv ./Installer ..
cd ..

View File

@ -16,28 +16,28 @@ echo Generating the JSON handlers
easyjson -pkg common
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 (
pause
exit /b %errorlevel%
)
echo Building the installer
go build "./cmd/install"
go build -ldflags="-s -w" "./cmd/install"
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Building the router generator
go build ./router_gen
go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Building the query generator
go build "./cmd/query_gen"
go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
echo "Building the patcher"
go generate
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
go generate
go build ./patcher
go build -ldflags="-s -w" ./patcher
patcher.exe

View File

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

View File

@ -2,6 +2,6 @@ go get -u github.com/mailru/easyjson/...
easyjson -pkg common
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

View File

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

View File

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

View File

@ -11,20 +11,20 @@ echo "Generating the JSON handlers"
easyjson -pkg common
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"
./RouterGen
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"
./QueryGen
echo "Building Gosora"
go build -o Gosora
go build -ldflags="-s -w" -o Gosora
echo "Building the templates"
./Gosora -build-templates
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
echo "Patching Gosora"
go build -o Patcher "./patcher"
go build -ldflags="-s -w" -o Patcher "./patcher"
./Patcher

View File

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

View File

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

View File

@ -8,12 +8,12 @@ echo "Generating the dynamic code"
go generate
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"
./RouterGen
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"
./QueryGen
@ -21,13 +21,13 @@ echo "Generating the JSON handlers"
easyjson -pkg common
echo "Building Gosora"
go build -o Gosora
go build -ldflags="-s -w" -o Gosora
echo "Building the templates"
./Gosora -build-templates
echo "Building Gosora... Again"
go build -o Gosora
go build -ldflags="-s -w" -o Gosora
echo "Running Gosora"
./Gosora

View File

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

View File

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

View File

@ -15,7 +15,7 @@ if %errorlevel% neq 0 (
)
echo Building the router generator
go build ./router_gen
go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
@ -28,7 +28,7 @@ if %errorlevel% neq 0 (
)
echo Building the query generator
go build "./cmd/query_gen"
go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
@ -44,7 +44,7 @@ echo Generating the JSON handlers
easyjson -pkg common
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 (
pause
exit /b %errorlevel%
@ -58,7 +58,7 @@ if %errorlevel% neq 0 (
)
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 (
pause
exit /b %errorlevel%

View File

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

View File

@ -15,7 +15,7 @@ if %errorlevel% neq 0 (
)
echo Building the router generator
go build ./router_gen
go build -ldflags="-s -w" ./router_gen
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
@ -28,7 +28,7 @@ if %errorlevel% neq 0 (
)
echo Building the query generator
go build "./cmd/query_gen"
go build -ldflags="-s -w" "./cmd/query_gen"
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
@ -44,7 +44,7 @@ echo Generating the JSON handlers
easyjson -pkg common
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 (
pause
exit /b %errorlevel%
@ -58,7 +58,7 @@ if %errorlevel% neq 0 (
)
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 (
pause
exit /b %errorlevel%

View File

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

View File

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