From ce7f594010269cec82bf20010326848c73d38779 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Mon, 7 Feb 2022 08:45:15 +0100 Subject: [PATCH] Remove outdated build tools --- BuildTools/appveyor-ilspycmd-install.ps1 | 34 -------------------- BuildTools/appveyor-install.ps1 | 41 ------------------------ BuildTools/pipelines-install.ps1 | 41 ------------------------ 3 files changed, 116 deletions(-) delete mode 100644 BuildTools/appveyor-ilspycmd-install.ps1 delete mode 100644 BuildTools/appveyor-install.ps1 delete mode 100644 BuildTools/pipelines-install.ps1 diff --git a/BuildTools/appveyor-ilspycmd-install.ps1 b/BuildTools/appveyor-ilspycmd-install.ps1 deleted file mode 100644 index 0d549c7a7..000000000 --- a/BuildTools/appveyor-ilspycmd-install.ps1 +++ /dev/null @@ -1,34 +0,0 @@ -$ErrorActionPreference = "Stop" - -$baseCommit = "e17b4bfedf4dc747b105396224cd726bdca500ad"; -$baseCommitRev = 1; - -# make sure this matches artifacts-only branches list in appveyor.yml! -$masterBranches = '^(master|release/.+)$'; - -$globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs"; - -$versionParts = @{}; -Get-Content $globalAssemblyInfoTemplateFile | where { $_ -match 'string (\w+) = "?(\w+)"?;' } | foreach { $versionParts.Add($Matches[1], $Matches[2]) } - -$major = $versionParts.Major; -$minor = $versionParts.Minor; -$build = $versionParts.Build; -$versionName = $versionParts.VersionName; - -if ($versionName -ne "null") { - $versionName = "-$versionName"; -} else { - $versionName = ""; -} -if ($env:APPVEYOR_REPO_BRANCH -match $masterBranches) { - $branch = ""; -} else { - $branch = "-$env:APPVEYOR_REPO_BRANCH"; -} - -$revision = [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + $baseCommitRev; - -$newVersion="$major.$minor.$build.$revision"; -$env:appveyor_build_version="$newVersion$branch$versionName"; -appveyor UpdateBuild -Version "$newVersion$branch$versionName"; \ No newline at end of file diff --git a/BuildTools/appveyor-install.ps1 b/BuildTools/appveyor-install.ps1 deleted file mode 100644 index a69ff0732..000000000 --- a/BuildTools/appveyor-install.ps1 +++ /dev/null @@ -1,41 +0,0 @@ -$ErrorActionPreference = "Stop" - -$baseCommit = "d779383cb85003d6dabeb976f0845631e07bf463"; -$baseCommitRev = 1; - -# make sure this matches artifacts-only branches list in appveyor.yml! -$masterBranches = '^(master|release/.+)$'; - -$globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs"; - -$versionParts = @{}; -Get-Content $globalAssemblyInfoTemplateFile | where { $_ -match 'string (\w+) = "?(\w+)"?;' } | foreach { $versionParts.Add($Matches[1], $Matches[2]) } - -$major = $versionParts.Major; -$minor = $versionParts.Minor; -$build = $versionParts.Build; -$versionName = $versionParts.VersionName; - -if ($versionName -ne "null") { - $versionName = "-$versionName"; -} else { - $versionName = ""; -} -if ($env:APPVEYOR_REPO_BRANCH -match $masterBranches) { - $branch = ""; -} else { - $branch = "-$env:APPVEYOR_REPO_BRANCH"; -} -if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { - $suffix = "-pr$env:APPVEYOR_PULL_REQUEST_NUMBER"; -} else { - $suffix = ""; -} - -$revision = [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + $baseCommitRev; - -$newVersion="$major.$minor.$build.$revision"; -$env:APPVEYOR_BUILD_VERSION="$newVersion$branch$versionName$suffix"; -$env:ILSPY_VERSION_NUMBER="$newVersion$branch$versionName$suffix"; -appveyor UpdateBuild -Version "$newVersion$branch$versionName$suffix"; -Write-Host "new version: $newVersion$branch$versionName$suffix"; \ No newline at end of file diff --git a/BuildTools/pipelines-install.ps1 b/BuildTools/pipelines-install.ps1 deleted file mode 100644 index 7e73f3c60..000000000 --- a/BuildTools/pipelines-install.ps1 +++ /dev/null @@ -1,41 +0,0 @@ -$ErrorActionPreference = "Stop" - -$baseCommit = "d779383cb85003d6dabeb976f0845631e07bf463"; -$baseCommitRev = 1; - -# make sure this matches artifacts-only branches list in appveyor.yml! -$masterBranches = '^refs/heads/(master|release/.+)$'; - -$globalAssemblyInfoTemplateFile = "ILSpy/Properties/AssemblyInfo.template.cs"; - -$versionParts = @{}; -Get-Content $globalAssemblyInfoTemplateFile | where { $_ -match 'string (\w+) = "?(\w+)"?;' } | foreach { $versionParts.Add($Matches[1], $Matches[2]) } - -$major = $versionParts.Major; -$minor = $versionParts.Minor; -$build = $versionParts.Build; -$versionName = $versionParts.VersionName; - -if ($versionName -ne "null") { - $versionName = "-$versionName"; -} else { - $versionName = ""; -} - -if ($env:BUILD_SOURCEBRANCH -match $masterBranches) { - $branch = ""; -} else { - $branch = "-$env:BUILD_SOURCEBRANCHNAME"; -} -if ($env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER) { - $suffix = "-pr$env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER"; -} else { - $suffix = ""; -} - -$revision = [Int32]::Parse((git rev-list --count "$baseCommit..HEAD")) + $baseCommitRev; - -$newVersion="$major.$minor.$build.$revision"; -$env:ILSPY_VERSION_NUMBER="$newVersion$branch$versionName$suffix"; -Write-Host "##vso[build.updatebuildnumber]$newVersion$branch$versionName$suffix"; -Write-Host "new version: $newVersion$branch$versionName$suffix"; \ No newline at end of file