Skip to content

Commit 0f7d890

Browse files
committed
Add new powershell script for license template generation
1 parent 17ec299 commit 0f7d890

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
param (
2+
[Parameter(Mandatory=$true)][string]$workingDir
3+
)
4+
5+
$source = $workingDir + '\Licenses\license.rtf';
6+
$license = $workingDir + '\InnoSetup\Includes\license.rtf';
7+
$endYear = Get-Date -Format yyyy;
8+
(Get-Content $source).replace('$(YEAR$)', $endYear) | Set-Content $license;

0 commit comments

Comments
 (0)