mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-14 04:57:15 +00:00
Updates to script file
This commit is contained in:
parent
f8a6ef8c41
commit
77d5438063
1 changed files with 11 additions and 24 deletions
|
|
@ -1,17 +1,4 @@
|
||||||
#Set-ExecutionPolicy RemoteSigned
|
function Update-SourceVersion
|
||||||
function Usage
|
|
||||||
{
|
|
||||||
echo "This is ";
|
|
||||||
echo “Usage: “;
|
|
||||||
echo ” from cmd.exe: “;
|
|
||||||
echo ” powershell.exe SetVersion.ps1 2.8.3.0″;
|
|
||||||
echo ” “;
|
|
||||||
echo ” from powershell.exe prompt: “;
|
|
||||||
echo ” .\SetVersion.ps1 2.8.3.0″;
|
|
||||||
echo ” “;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Update-SourceVersion
|
|
||||||
{
|
{
|
||||||
Param ([string]$Version)
|
Param ([string]$Version)
|
||||||
$NewVersion = ‘AssemblyVersion("‘ + $Version + ‘.*")’;
|
$NewVersion = ‘AssemblyVersion("‘ + $Version + ‘.*")’;
|
||||||
|
|
@ -42,7 +29,7 @@ $r= [System.Text.RegularExpressions.Regex]::Match($args[0], "^\d+\.\d+\.\d+$");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo ” “;
|
echo ” “;
|
||||||
echo “Bad Input!”
|
echo “Error: Input version does not match x.y.z format!”
|
||||||
echo ” “;
|
echo ” “;
|
||||||
Usage ;
|
echo "Unable to apply version to AssemblyInfo.cs files";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue