27 lines
425 B
Bash
Executable File
27 lines
425 B
Bash
Executable File
#!/bin/bash
|
|
|
|
AUTO_REBUILD=1
|
|
|
|
# CONFIDENCE_LEVEL=Debug
|
|
# DOTNET_VERSION=8.0
|
|
# APP_PATH=mocha-dotnet/src/app/Mocha.ServerApplication/bin/$CONFIDENCE_LEVEL/net$DOTNET_VERSION
|
|
APP_PATH=./output/
|
|
APP_NAME=Mocha.ServerApplication
|
|
|
|
if [ $AUTO_REBUILD -eq 1 ]; then
|
|
|
|
# dotnet build
|
|
./build
|
|
|
|
if [ $? -eq 1 ]; then
|
|
|
|
echo "There were build errors. Please fix the errors and re-run Mocha CUP."
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
$APP_PATH/$APP_NAME
|
|
|