2018-06-06 04:16:27 +00:00
|
|
|
echo "Deleting artifacts from previous builds"
|
2018-06-06 04:33:47 +00:00
|
|
|
rm -f template_*.go
|
|
|
|
rm -f gen_*.go
|
|
|
|
rm -f tmpl_client/template_*.go
|
|
|
|
rm -f ./Gosora
|
2018-06-06 04:16:27 +00:00
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Generating the dynamic code"
|
|
|
|
go generate
|
2018-03-31 05:25:27 +00:00
|
|
|
|
2018-06-06 04:33:47 +00:00
|
|
|
echo "Building the router generator"
|
2018-06-06 04:42:57 +00:00
|
|
|
cd ./router_gen
|
|
|
|
go build -o RouterGen
|
|
|
|
mv ./RouterGen ..
|
|
|
|
cd ..
|
2018-06-06 04:33:47 +00:00
|
|
|
echo "Running the router generator"
|
2018-06-06 04:42:57 +00:00
|
|
|
./RouterGen
|
2018-06-06 04:33:47 +00:00
|
|
|
|
|
|
|
echo "Building the query generator"
|
2018-06-06 04:42:57 +00:00
|
|
|
cd ./query_gen
|
|
|
|
go build -o QueryGen
|
|
|
|
mv ./QueryGen ..
|
|
|
|
cd ..
|
2018-06-06 04:33:47 +00:00
|
|
|
echo "Running the query generator"
|
2018-06-06 04:42:57 +00:00
|
|
|
./QueryGen
|
2018-06-06 04:33:47 +00:00
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Building Gosora"
|
|
|
|
go build -o Gosora -tags no_ws
|
2018-03-31 05:25:27 +00:00
|
|
|
|
2018-03-21 05:56:33 +00:00
|
|
|
echo "Building the templates"
|
|
|
|
./Gosora -build-templates
|
2018-03-31 05:25:27 +00:00
|
|
|
|
|
|
|
echo "Building Gosora... Again"
|
|
|
|
go build -o Gosora -tags no_ws
|
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
echo "Running Gosora"
|
|
|
|
./Gosora
|