gosora/pre-run-linux

43 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

echo "Deleting artifacts from previous builds"
rm -f template_*.go
rm -f tmpl_*.go
rm -f gen_*.go
rm -f tmpl_client/template_*
rm -f tmpl_client/tmpl_*
rm -f ./Gosora
rm -f ./common/gen_extend.go
echo "Generating the dynamic code"
go generate
echo "Building the router generator"
2019-07-10 15:33:07 +00:00
go build -ldflags="-s -w" -o RouterGen "./router_gen"
echo "Running the router generator"
./RouterGen
echo "Building the hook stub generator"
go build -ldflags="-s -w" -o HookStubGen "./cmd/hook_stub_gen"
echo "Running the hook stub generator"
./HookStubGen
echo "Building the hook generator"
go build -tags hookgen -ldflags="-s -w" -o HookGen "./cmd/hook_gen"
echo "Running the hook generator"
./HookGen
2020-05-28 08:07:13 +00:00
echo "Building the query generator"
go build -ldflags="-s -w" -o QueryGen "./cmd/query_gen"
echo "Running the query generator"
./QueryGen
2020-05-28 08:00:24 +00:00
echo "Generating the JSON handlers"
easyjson -pkg common
echo "Building Gosora"
go build -ldflags="-s -w" -o Gosora
echo "Building the templates"
./Gosora -build-templates
echo "Building Gosora... Again"
2019-07-10 15:33:07 +00:00
go build -ldflags="-s -w" -o Gosora