Skip to content

Commit feeb83b

Browse files
committed
Format and add header to nuget-related ps1 file.
1 parent 704f081 commit feeb83b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.azure-pipelines/nuget/stage_nuget.ps1

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
# Copyright (c) 2019-2020 The Khronos Group Inc.
2+
# SPDX-License-Identifier: Apache-2.0
13
param(
2-
[Parameter(Mandatory=$true, HelpMessage="Path to unzipped openxr_loader_windows OpenXR-SDK release asset")]
4+
[Parameter(Mandatory = $true, HelpMessage = "Path to unzipped openxr_loader_windows OpenXR-SDK release asset")]
35
$SDKRelease,
4-
[Parameter(Mandatory=$true, HelpMessage="Path to specification Makefile. Needed to extract the version")]
6+
[Parameter(Mandatory = $true, HelpMessage = "Path to specification Makefile. Needed to extract the version")]
57
$SpecMakefile,
6-
[Parameter(Mandatory=$true, HelpMessage="Path create staged nuget directory layout")]
8+
[Parameter(Mandatory = $true, HelpMessage = "Path create staged nuget directory layout")]
79
$NugetStaging)
810

911
$ErrorActionPreference = "Stop"
@@ -30,7 +32,7 @@ $SDKVersion = $VersionMatch.Matches[0].Groups[1]
3032
#
3133
# Start off using the NuGet template.
3234
#
33-
echo "Copy-Item $NugetTemplate $NugetStaging -Recurse"
35+
Write-Output "Copy-Item $NugetTemplate $NugetStaging -Recurse"
3436
Copy-Item $NugetTemplate $NugetStaging -Recurse
3537

3638
#
@@ -51,8 +53,7 @@ Copy-Item (Join-Path $SDKRelease "include") (Join-Path $NugetStaging "include")
5153
#
5254
# Copy in the binaries from the SDK release.
5355
#
54-
function CopyLoader($Platform)
55-
{
56+
function CopyLoader($Platform) {
5657
$PlatformSDKPath = Join-Path $SDKRelease "$Platform"
5758
$NuGetPlatformPath = Join-Path $NugetStaging "native/$Platform/release"
5859

0 commit comments

Comments
 (0)