From 58a544779d6448e4cc168db4444e7fe87f129ab4 Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Sat, 1 Feb 2014 02:36:14 -0600 Subject: [PATCH] build tool handling --- buildwin.ps1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/buildwin.ps1 b/buildwin.ps1 index c6cfda62a..adfb87157 100644 --- a/buildwin.ps1 +++ b/buildwin.ps1 @@ -330,9 +330,14 @@ function Build Write-Host "| Building $vsProject" Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" - if ($tool -eq 'devenv') { Build-Devenv $vsProject } + if ($tool -eq 'devenv') { Build-Devenv $vsProject } elseif ($tool -eq 'msbuild') { Build-MSBuild $vsProject } - else{ Write-Host "Tool not supported: $tool" } + elseif ($tool -ne '') { Write-Host "Build tool not supported: $tool" } + else + { + Write-Host "Build tool not specified. Exiting." + Exit + } if ($tests) {