Skip to content

Commit b9c321c

Browse files
committed
Added copyright and converted tabs to space in package.ps1 and added .pack-version to the ignore copyright check
1 parent 3a8a9a0 commit b9c321c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Build/NuGet/package.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#-------------------------------------------------------------------------------------------------------
2+
# Copyright (C) Microsoft. All rights reserved.
3+
# Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
#-------------------------------------------------------------------------------------------------------
5+
16
$root = (split-path -parent $MyInvocation.MyCommand.Definition) + '\..'
27

38
$packageRoot = "$root\NuGet"
@@ -35,11 +40,11 @@ Foreach ($nuspec in $(Get-Item $packageRoot\*.nuspec))
3540
$content = $content -replace '\$version\$',$versionStr
3641
$content | Out-File $compiledNuspec
3742

38-
& $targetNugetExe pack $compiledNuspec -outputdirectory $packageArtifacts
43+
& $targetNugetExe pack $compiledNuspec -outputdirectory $packageArtifacts
3944
}
4045

4146
# Delete compiled temporary nuspec.
4247
If (Test-Path $compiledNuspec)
4348
{
44-
Remove-Item $compiledNuspec
49+
Remove-Item $compiledNuspec
4550
}

jenkins/check_copyright.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ git diff --name-only `git merge-base origin/master HEAD` HEAD |
3131
grep -v -E '\.filters$' |
3232
grep -v -E '\.targets$' |
3333
grep -v -E '\.nuspec$' |
34+
grep -v -E '\.pack-version$' |
3435
grep -v -E '\.def$' |
3536
grep -v -E '\.inc$' |
3637
grep -v -E '\.json$' |

0 commit comments

Comments
 (0)