Skip to content

Commit c1c5344

Browse files
SteveL-MSFTTravisEz13
authored andcommitted
Update copyright and license headers (#6134)
Based on standard practices, we need to have a copyright and license notice at the top of each source file. Removed existing copyrights and updated/added copyright notices for .h, .cpp, .cs, .ps1, and .psm1 files. Updated module manifests for consistency to have Author = "PowerShell" and Company = "Microsoft Corporation". Removed multiple line breaks. Separate PR coming to update contribution document for new source files: #6140 Manually reviewed each change. Fix #6073
1 parent 0ad9fc9 commit c1c5344

File tree

1,567 files changed

+3484
-5749
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,567 files changed

+3484
-5749
lines changed

build.psm1

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
# On Unix paths is separated by colon
25
# On Windows paths is separated by semicolon
36
$script:TestModulePathSeparator = [System.IO.Path]::PathSeparator
@@ -873,7 +876,6 @@ function Get-PSOutput {
873876
}
874877
}
875878

876-
877879
function Get-PesterTag {
878880
param ( [Parameter(Position=0)][string]$testbase = "$PSScriptRoot/test/powershell" )
879881
$alltags = @{}
@@ -1362,7 +1364,6 @@ function Test-PSPesterResults
13621364
}
13631365
}
13641366

1365-
13661367
function Start-PSxUnit {
13671368
[CmdletBinding()]param(
13681369
[string] $SequentialTestResultsFile = "SequentialXUnitResults.xml",
@@ -1430,7 +1431,6 @@ function Start-PSxUnit {
14301431
}
14311432
}
14321433

1433-
14341434
function Install-Dotnet {
14351435
[CmdletBinding()]
14361436
param(
@@ -1914,7 +1914,6 @@ function Start-ResGen
19141914
}
19151915
}
19161916

1917-
19181917
function Find-Dotnet() {
19191918
$originalPath = $env:PATH
19201919
$dotnetPath = if ($Environment.IsWindows) { "$env:LocalAppData\Microsoft\dotnet" } else { "$env:HOME/.dotnet" }
@@ -1972,7 +1971,6 @@ function Convert-TxtResourceToXml
19721971
}
19731972
}
19741973

1975-
19761974
function script:Use-MSBuild {
19771975
# TODO: we probably should require a particular version of msbuild, if we are taking this dependency
19781976
# msbuild v14 and msbuild v4 behaviors are different for XAML generation
@@ -1991,7 +1989,6 @@ function script:Use-MSBuild {
19911989
Set-Alias msbuild $frameworkMsBuildLocation -Scope Script
19921990
}
19931991

1994-
19951992
function script:log([string]$message) {
19961993
Write-Host -Foreground Green $message
19971994
#reset colors for older package to at return to default after error message on a compilation error
@@ -2534,7 +2531,6 @@ function Restore-PSModule
25342531
}
25352532
}
25362533

2537-
25382534
$script:RESX_TEMPLATE = @'
25392535
<?xml version="1.0" encoding="utf-8"?>
25402536
<root>

demos/Apache/Apache/Apache.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
#Region utility functions
25

36
$global:sudocmd = "sudo"
@@ -216,7 +219,6 @@ Function Restart-ApacheHTTPServer{
216219

217220
}
218221

219-
220222
Function Get-ApacheModule{
221223
$cmd = GetApacheCmd
222224

demos/Apache/apache-demo.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
Import-Module $PSScriptRoot/Apache/Apache.psm1
25

36
#list Apache Modules

demos/Azure/Azure-Demo.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
### The techniques used in this demo are documented at
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
4+
### The techniques used in this demo are documented at
25
### https://azure.microsoft.com/en-us/documentation/articles/powershell-azure-resource-manager/
36

47
### Import AzureRM.Profile.NetCore.Preview and AzureRM.Resources.NetCore.Preview modules.

demos/DSC/dsc-demo.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
13

24
#Get Distro type and set distro-specific variables
35
$OSname = Get-Content "/etc/os-release" |Select-String -Pattern "^Name="

demos/Docker-PowerShell/Docker-PowerShell.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
# This is a short example of the Docker-PowerShell module. The same cmdlets may be used to manage both local & remote machines, including both Windows & Linux hosts
25
# The only difference between them is the example container image is pulled & run.
36

@@ -26,4 +29,4 @@ Get-Container | Where-Object State -eq "exited" | Remove-Container
2629
Remove-ContainerImage hello-world
2730

2831
# And list the container images left on the container host
29-
Get-ContainerImage
32+
Get-ContainerImage

demos/SystemD/SystemD/SystemD.psm1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
Function Get-SystemDJournal {
25
[CmdletBinding()]
36
param (
@@ -15,4 +18,4 @@ Function Get-SystemDJournal {
1518
{
1619
$Result
1720
}
18-
}
21+
}

demos/SystemD/journalctl-demo.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
14
Import-Module $PSScriptRoot/SystemD/SystemD.psm1
25

36
#list recent journal events

demos/crontab/CronTab/CronTab.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ CompatiblePSEditions = @('Core')
1313
GUID = '508bb97f-de2e-482e-aae2-01caec0be8c7'
1414

1515
# Author of this module
16-
Author = 'Microsoft'
16+
Author = 'PowerShell'
1717

1818
# Company or vendor of this module
19-
CompanyName = 'Unknown'
19+
CompanyName = 'Microsoft Corporation'
2020

2121
# Copyright statement for this module
2222
Copyright = 'Copyright (c) Microsoft Corporation. All rights reserved.'

demos/crontab/CronTab/CronTab.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
13

24
using namespace System.Collections.Generic
35
using namespace System.Management.Automation

0 commit comments

Comments
 (0)