From: Santiago Fernandez Madero Date: Mon, 18 Nov 2019 19:09:31 +0000 (-0800) Subject: Allow passing down an upper case subset category (#104) X-Git-Tag: submit/tizen/20210909.063632~10988 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca2dec49606338b52574dfb4ea49272abed1684b;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Allow passing down an upper case subset category (#104) --- diff --git a/eng/build.ps1 b/eng/build.ps1 index c2af7b1..8709b36 100644 --- a/eng/build.ps1 +++ b/eng/build.ps1 @@ -19,6 +19,7 @@ Param( function Get-Help() { Write-Host "Common settings:" Write-Host " -subset Build a subset, print availabe subsets with -subset help" + Write-Host " -subsetCategory Build a subsetCategory, print availabe subsetCategories with -subset help" Write-Host " -os Build operating system: Windows_NT or Unix" Write-Host " -arch Build platform: x86, x64, arm or arm64" Write-Host " -configuration Build configuration: Debug or Release (short: -c)" @@ -56,6 +57,8 @@ if ($MyInvocation.InvocationName -eq ".") { exit 0 } +$subsetCategory = $subsetCategory.ToLowerInvariant() + # VS Test Explorer support for libraries if ($vs) { if (-Not (Test-Path $vs)) { diff --git a/eng/build.sh b/eng/build.sh index 190f28d..fb9f0cf 100755 --- a/eng/build.sh +++ b/eng/build.sh @@ -16,6 +16,7 @@ usage() { echo "Common settings:" echo " --subset Build a subset, print availabe subsets with -subset help" + echo " --subsetCategory Build a subsetCategory, print availabe subsetCategories with -subset help" echo " --os Build operating system: Windows_NT or Unix" echo " --arch Build platform: x86, x64, arm or arm64" echo " --configuration Build configuration: Debug or Release (short: -c)" @@ -64,8 +65,8 @@ while [[ $# > 0 ]]; do exit 0 ;; -subsetcategory) - subsetCategory=$2 - arguments="$arguments /p:SubsetCategory=$2" + subsetCategory="$(echo "$2" | awk '{print tolower($0)}')" + arguments="$arguments /p:SubsetCategory=$subsetCategory" shift 2 ;; -subset)