forked from ecampidoglio/Linker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·23 lines (19 loc) · 786 Bytes
/
build.sh
File metadata and controls
executable file
·23 lines (19 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
########################################################################################
# This is a Cake bootstrapper script for Linux and macOS using .NET Core 2.1
########################################################################################
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
CAKE_VERSION=0.33.0
TOOLS_DIR=$SCRIPT_DIR/tools
CAKE_TOOL=$TOOLS_DIR/dotnet-cake
# Make sure the tools folder exist
if [ ! -d "$TOOLS_DIR" ]; then
mkdir "$TOOLS_DIR"
fi
# Install the Cake Tool locally
if [ ! -f "$CAKE_TOOL" ]; then
echo -e "\033[92mInstalling 'cake.tool' $CAKE_VERSION in '$TOOLS_DIR'\033[0m"
dotnet tool install Cake.Tool --version $CAKE_VERSION --tool-path $TOOLS_DIR
fi
# Run the build script
exec "$CAKE_TOOL" "$@"