Reverted the changes to run-linux due to scoping issues breaking it.

This commit is contained in:
Azareal 2018-07-24 16:52:46 +10:00
parent affdf67273
commit 35d0facf06
1 changed files with 14 additions and 17 deletions

View File

@ -7,24 +7,21 @@ rm -f ./Gosora
echo "Generating the dynamic code" echo "Generating the dynamic code"
go generate go generate
runBuilder() echo "Building the router generator"
{ cd ./router_gen
PATH=$1 go build -o RouterGen
BINNAME=$2 mv ./RouterGen ..
shift;shift; cd ..
WHATIS=$@ echo "Running the router generator"
./RouterGen
echo "Building the $WHATIS generator" echo "Building the query generator"
cd $PATH cd ./query_gen
go build -o $BINNAME go build -o QueryGen
mv "./$BINNAME" .. mv ./QueryGen ..
cd .. cd ..
echo "Running the $WHATIS generator" echo "Running the query generator"
./$BINNAME ./QueryGen
}
runBuilder ./router_gen RouterGen router
runBuilder ./query_gen QueryGen query
echo "Building Gosora" echo "Building Gosora"
go build -o Gosora go build -o Gosora