Skip to content

Commit

Permalink
Remove Old QNS Files and Update Version (microsoft#2475)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks authored Mar 7, 2022
1 parent e8b28c1 commit 411c316
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 165 deletions.
84 changes: 0 additions & 84 deletions .azure/azure-pipelines.qns.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .azure/templates/run-qns.yml

This file was deleted.

20 changes: 10 additions & 10 deletions scripts/update-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ $PSDefaultParameterValues['*:ErrorAction'] = 'Stop'
$RootDir = Split-Path $PSScriptRoot -Parent
$MsQuicVerFilePath = Join-Path $RootDir "src" "inc" "msquic.ver"
$CreateVPackFilePath = Join-Path $RootDir ".azure" "obtemplates" "push-vpack.yml"
$QnsFilePath = Join-Path $RootDir ".azure" "azure-pipelines.qns.yml"
$NugetPackageFile = Join-Path $RootDir "scripts" "package-nuget.ps1"
$DistributionFile = Join-Path $RootDir "scripts" "package-distribution.ps1"
$FrameworkInfoFile = Join-Path $RootDir "src" "distribution" "Info.plist"
$CMakeFile = Join-Path $RootDir "CMakeLists.txt"
$VersionsWriteFile = Join-Path $RootDir "scripts" "write-versions.ps1"
$CargoFile = Join-Path $RootDir "Cargo.toml"

# Get the current version number from the msquic.ver file.
$VerMajor = (Select-String -Path $MsQuicVerFilePath "#define VER_MAJOR (.*)" -AllMatches).Matches[0].Groups[1].Value
Expand Down Expand Up @@ -62,9 +62,12 @@ Write-Host " New version: $NewVerMajor.$NewVerMinor.$NewVerPatch"
-replace "minorVer: (.*)", "minorVer: $NewVerMinor" `
-replace "patchVer: (.*)", "patchVer: $NewVerPatch" |`
Out-File $CreateVPackFilePath
(Get-Content $QnsFilePath) `
-replace "$VerMajor.$VerMinor.$VerPatch", "$NewVerMajor.$NewVerMinor.$NewVerPatch" |`
Out-File $QnsFilePath
(Get-Content $CMakeFile) `
-replace "`set\(QUIC_MAJOR_VERSION $VerMajor\)", "set(QUIC_MAJOR_VERSION $NewVerMajor)" |`
Out-File $CMakeFile
(Get-Content $CMakeFile) `
-replace "set\(QUIC_FULL_VERSION $VerMajor.$VerMinor.$VerPatch\)", "set(QUIC_FULL_VERSION $NewVerMajor.$NewVerMinor.$NewVerPatch)" |`
Out-File $CMakeFile
(Get-Content $NugetPackageFile) `
-replace "$VerMajor.$VerMinor.$VerPatch", "$NewVerMajor.$NewVerMinor.$NewVerPatch" |`
Out-File $NugetPackageFile
Expand All @@ -74,12 +77,9 @@ Write-Host " New version: $NewVerMajor.$NewVerMinor.$NewVerPatch"
(Get-Content $DistributionFile) `
-replace "$VerMajor.$VerMinor.$VerPatch", "$NewVerMajor.$NewVerMinor.$NewVerPatch" |`
Out-File $DistributionFile
(Get-Content $CMakeFile) `
-replace "`set\(QUIC_MAJOR_VERSION $VerMajor\)", "set(QUIC_MAJOR_VERSION $NewVerMajor)" |`
Out-File $CMakeFile
(Get-Content $CMakeFile) `
-replace "set\(QUIC_FULL_VERSION $VerMajor.$VerMinor.$VerPatch\)", "set(QUIC_FULL_VERSION $NewVerMajor.$NewVerMinor.$NewVerPatch)" |`
Out-File $CMakeFile
(Get-Content $VersionsWriteFile) `
-replace "$VerMajor.$VerMinor.$VerPatch", "$NewVerMajor.$NewVerMinor.$NewVerPatch" |`
Out-File $VersionsWriteFile
(Get-Content $CargoFile) `
-replace "$VerMajor.$VerMinor.$VerPatch", "$NewVerMajor.$NewVerMinor.$NewVerPatch" |`
Out-File $CargoFile

0 comments on commit 411c316

Please sign in to comment.