Skip to content

Commit 9bf2d09

Browse files
author
Robin Stolpe
committed
removed notes that are not needed
1 parent c8cc08d commit 9bf2d09

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

RSPublish.ps1

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@
1212
[string]$apiKey
1313
)
1414

15-
# When module creates this file add what version this file comes from for the EasyModuleBuild
16-
# Check if it's any newer version of this module, if it's any newer alert the user about it.
17-
# Create script to generate GUID and populate it in the manifest when generated, this should only happen in the setup new module script not in this one.
18-
# Create script will also populate the Company, PreReleaseTag, author and webpageURI for the manifest.
1915

20-
# Need to find a way to handle -beta tags, might add a switch for that
2116
$preReleaseTag = "beta"
2217

2318
# Creating ArrayList for use later in the script
@@ -52,9 +47,6 @@ Write-OutPut "Starting to build the module, please wait..."
5247
if (!(Test-Path $ModuleFolderPath)) {
5348
Write-Verbose "Creating folder $($ModuleFolderPath)"
5449
[void](New-Item -Path $ModuleFolderPath -ItemType Directory -Force)
55-
56-
# add check to see if the user has this files in there user profile and wrap this to if/else
57-
# if they don't have it copy it from this root module
5850
}
5951
else {
6052
if (Test-Path $outPSMFile) {
@@ -66,8 +58,6 @@ else {
6658
Write-Verbose "Removing file $($outPSDFile)"
6759
Remove-Item -Path $outPSDFile -Force
6860
}
69-
# Check so .gitignore, LICENSE, README.md exists in the module folder, if not se line below what to do.
70-
# check if .gitignore, LICENSE, README.md exists in user settings folder, if not copy the original ones from this modules root folder.
7161
}
7262

7363
if (!(Test-Path $srcPath)) {
@@ -77,7 +67,6 @@ if (!(Test-Path $srcPath)) {
7767
Write-Verbose "Creating folder $($f)"
7868
[void](New-Item -Path $f -ItemType Directory -Force)
7969
}
80-
# Check if the user has any settingfiles for this module if not, then Copy .psd1.source and FileLicens.ps1.source to this folder from the this modules root folder
8170
}
8271
else {
8372
foreach ($f in $srcNeededFolders) {
@@ -86,7 +75,6 @@ else {
8675
[void](New-Item -Path $f -ItemType Directory -Force)
8776
}
8877
}
89-
# check so all the nessacary files are there, if not check if user has user settingsfiles for this module if he don't have it copy the original files from the root module folder
9078
}
9179

9280
# Adding the text from the gnu3_add_file_licens.source to the to of the .psm1 file for licensing of GNU v3
@@ -142,8 +130,6 @@ Copy-Item -Path $psdTemplate -Destination $outPSDFile -Force
142130
Write-Verbose "Getting the content from file $($outPSDFile)"
143131
$PSDfileContent = Get-Content -Path $outPSDFile
144132

145-
# Can I do a loop here? I just might :) remember to check if the varible is empty or not
146-
# Changing version, preReleaseTag and function in the .psd1 file
147133
Write-Verbose "Replacing the placeholders in the $($outPSDFile) file"
148134
$PSDfileContent = $PSDfileContent -replace '{{manifestDate}}', $ManifestDate
149135
$PSDfileContent = $PSDfileContent -replace '{{moduleName}}', $ModuleName

0 commit comments

Comments
 (0)