2019-10-11 18:33:21 +08:00
|
|
|
echo "Installing Cake.Tool..."
|
2019-10-10 16:48:56 +08:00
|
|
|
dotnet tool install Cake.Tool --global --version 0.35.0
|
2019-10-11 18:33:21 +08:00
|
|
|
|
|
|
|
# Parse arguments.
|
|
|
|
CAKE_ARGUMENTS=()
|
|
|
|
for i in "$@"; do
|
|
|
|
case $1 in
|
|
|
|
-s|--script) SCRIPT="$2"; shift ;;
|
|
|
|
--) shift; CAKE_ARGUMENTS+=("$@"); break ;;
|
|
|
|
*) CAKE_ARGUMENTS+=("$1") ;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "Running build script..."
|
2019-10-10 16:48:56 +08:00
|
|
|
dotnet cake ./build/build.cake --bootstrap
|
2019-10-11 18:33:21 +08:00
|
|
|
dotnet cake ./build/build.cake "${CAKE_ARGUMENTS[@]}"
|