2018-07-24 08:45:01 +00:00
|
|
|
echo "Deleting artifacts from previous builds"
|
|
|
|
rm -f template_*.go
|
|
|
|
rm -f gen_*.go
|
|
|
|
rm -f tmpl_client/template_*.go
|
|
|
|
rm -f ./Gosora
|
|
|
|
|
|
|
|
echo "Generating the dynamic code"
|
|
|
|
go generate
|
|
|
|
|
|
|
|
echo "Building the router generator"
|
|
|
|
cd ./router_gen
|
|
|
|
go build -o RouterGen
|
|
|
|
mv ./RouterGen ..
|
|
|
|
cd ..
|
|
|
|
echo "Running the router generator"
|
|
|
|
./RouterGen
|
|
|
|
|
|
|
|
echo "Building the query generator"
|
2018-10-27 03:21:02 +00:00
|
|
|
cd ./cmd/query_gen
|
2018-07-24 08:45:01 +00:00
|
|
|
go build -o QueryGen
|
2018-10-27 03:21:02 +00:00
|
|
|
mv ./QueryGen ../..
|
|
|
|
cd ../..
|
2018-07-24 08:45:01 +00:00
|
|
|
echo "Running the query generator"
|
|
|
|
./QueryGen
|
|
|
|
|
|
|
|
echo "Building Gosora"
|
|
|
|
go build -o Gosora
|
|
|
|
|
|
|
|
echo "Building the templates"
|
|
|
|
./Gosora -build-templates
|
|
|
|
|
|
|
|
echo "Building Gosora... Again"
|
|
|
|
go build -o Gosora
|