Reverted the changes to run-linux due to scoping issues breaking it.
This commit is contained in:
parent
affdf67273
commit
35d0facf06
29
run-linux
29
run-linux
|
@ -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;
|
|
||||||
WHATIS=$@
|
|
||||||
|
|
||||||
echo "Building the $WHATIS generator"
|
|
||||||
cd $PATH
|
|
||||||
go build -o $BINNAME
|
|
||||||
mv "./$BINNAME" ..
|
|
||||||
cd ..
|
cd ..
|
||||||
echo "Running the $WHATIS generator"
|
echo "Running the router generator"
|
||||||
./$BINNAME
|
./RouterGen
|
||||||
}
|
|
||||||
|
|
||||||
runBuilder ./router_gen RouterGen router
|
echo "Building the query generator"
|
||||||
runBuilder ./query_gen QueryGen query
|
cd ./query_gen
|
||||||
|
go build -o QueryGen
|
||||||
|
mv ./QueryGen ..
|
||||||
|
cd ..
|
||||||
|
echo "Running the query generator"
|
||||||
|
./QueryGen
|
||||||
|
|
||||||
echo "Building Gosora"
|
echo "Building Gosora"
|
||||||
go build -o Gosora
|
go build -o Gosora
|
||||||
|
|
Loading…
Reference in New Issue