Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil <schellap@microsoft.com>2016-01-08 02:31:56 +0300
committerSenthil <schellap@microsoft.com>2016-01-08 02:57:44 +0300
commit810d6074dd18ddcf8466b90900abe7b244766272 (patch)
tree96b911cc61f2adc1e550314a80eea2a016dcc6e2 /build.sh
parentb8be21f4224bbf9a7ed21c00823be05a353c1267 (diff)
Clean CLI for clean builds
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index c61f7ba47..6e93c4c6b 100755
--- a/build.sh
+++ b/build.sh
@@ -79,7 +79,15 @@ install_dotnet_cli()
echo "Installing the dotnet/cli..."
local __tools_dir=${__scriptpath}/bin/tools
local __cli_dir=${__tools_dir}/cli
-
+ if [ ${__CleanBuild} == 1 ]; then
+ if [ -d "${__cli_dir}" ]; then
+ rm -rf "${__cli_dir}"
+ fi
+ if [ -d "${__cli_dir}" ]; then
+ echo "Exiting... could not clean ${__cli_dir}"
+ exit 1
+ fi
+ fi
if [ ! -d "${__cli_dir}" ]; then
mkdir -p "${__cli_dir}"
fi
@@ -174,7 +182,7 @@ build_managed_corert()
__buildproj=$__scriptpath/build.proj
__buildlog=$__scriptpath/msbuild.$__BuildArch.log
- if [ -n ${ToolchainMilestone:+1} ]; then
+ if [ -z "${ToolchainMilestone}" ]; then
ToolchainMilestone=testing
fi