Skip to content

Commit da4ef33

Browse files
author
Robin Stolpe
committed
update
1 parent b1c1cd3 commit da4ef33

3 files changed

Lines changed: 28 additions & 20 deletions

File tree

.src/MaintainModule.psd1.source

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
MIT License
33

44
Copyright (c) {{year}} {{author}}
5+
<{{mail}}>
6+
<{{website}}>
57

68
Permission is hereby granted, free of charge, to any person obtaining a copy
79
of this software and associated documentation files (the "Software"), to deal

.src/license/LICENSE.source

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<#
2-
MIT License
2+
MIT License
33

4-
Copyright (C) {{year}} Robin Stolpe.
5-
robin@stolpe.io
6-
<https://stolpe.io>
4+
Copyright (C) {{year}} {{author}}.
5+
<{{mail}}>
6+
<{{website}}>
77

8-
Permission is hereby granted, free of charge, to any person obtaining a copy
9-
of this software and associated documentation files (the "Software"), to deal
10-
in the Software without restriction, including without limitation the rights
11-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12-
copies of the Software, and to permit persons to whom the Software is
13-
furnished to do so, subject to the following conditions:
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
1414

15-
The above copyright notice and this permission notice shall be included in all
16-
copies or substantial portions of the Software.
15+
The above copyright notice and this permission notice shall be included in all
16+
copies or substantial portions of the Software.
1717

18-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24-
SOFTWARE.
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
SOFTWARE.
2525
#>

RSModuleBuilder.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#Requires -Modules PSScriptAnalyzer
22

33
# Static variables
4-
[string]$Version = "0.1.2"
54
[string]$Author = "Robin Stolpe"
5+
[string]$Mail = "robin@stolpe.io"
6+
[string]$Website = "https://stolpe.io"
67
#
8+
[string]$Version = "0.1.2"
79
[bool]$Publish = $false
810
[string]$apiKey = ""
911
[string]$preRelease = "Alpha"
@@ -83,6 +85,8 @@ $PSMfileContent = Get-Content -Path $outPSMFile
8385
Write-Verbose "Replacing the placeholders in the $($outPSMFile) file"
8486
$PSMfileContent = $PSMfileContent -replace '{{year}}', $year
8587
$PSMfileContent = $PSMfileContent -replace '{{author}}', $Author
88+
$PSMfileContent = $PSMfileContent -replace '{{mail}}', $Mail
89+
$PSMfileContent = $PSMfileContent -replace '{{website}}', $Website
8690

8791
Write-Verbose "Setting the placeholders for $($outPSMFile)"
8892
Set-Content -Path $outPSMFile -Value $PSMfileContent -Encoding utf8BOM -Force
@@ -104,6 +108,8 @@ $PSDfileContent = $PSDfileContent -replace '{{moduleName}}', $ModuleName
104108
$PSDfileContent = $PSDfileContent -replace '{{year}}', $Year
105109
$PSDfileContent = $PSDfileContent -replace '{{version}}', $Version
106110
$PSDfileContent = $PSDfileContent -replace '{{preReleaseTag}}', $preReleaseTag
111+
$PSMfileContent = $PSMfileContent -replace '{{mail}}', $Mail
112+
$PSMfileContent = $PSMfileContent -replace '{{website}}', $Website
107113

108114
# If $FunctionPSD are empty, then adding @() instead according to best practices for performance
109115
if ($null -ne $FunctionPSD) {

0 commit comments

Comments
 (0)