mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 18:29:02 +08:00
b295670e4b
``` function Convert-Control { Param($full) .\vcpkg.exe format-manifest $full $root = $full.Substring(0, $full.Length - 7) # CONTROL $new = $root + 'vcpkg.json' $content = Get-Content -Raw $new $asJson = ConvertFrom-Json $content -AsHashtable -Depth 100 $oldVersion = $asJson['port-version'] if ($null -eq $oldVersion) { $oldVersionFull = $asJson['version-string'] Write-Host "Got version $oldVersionFull" $match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$') if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) { $newFullVersion = [string]$match.Groups[1].Value $oldVersion = [int]$match.Groups[2].Value Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion" $newVersion = $oldVersion + 1 $asJson['version-string'] = $newFullVersion Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion" } else { Write-Host "No previous version for $full -- setting 1" $newVersion = 1 } } else { $newVersion = [int]$oldVersion + 1 Write-Host "New version for $full : $newVersion" } $asJson['port-version'] = $newVersion $content = ConvertTo-Json $asJson -Depth 100 Set-Content -Path $new -Value $content .\vcpkg.exe format-manifest $new } Get-ChildItem ports\CONTROL -Recurse | Foreach-Object { Convert-Control $_.FullName } git commit -am "this message" .\vcpkg.exe x-add-version -all git commit -a --amend ```
185 lines
4.7 KiB
JSON
185 lines
4.7 KiB
JSON
{
|
|
"versions": [
|
|
{
|
|
"git-tree": "9810d811337a74ca11e032b94b52f4e4bed5d1b1",
|
|
"version-string": "5.15.2",
|
|
"port-version": 1
|
|
},
|
|
{
|
|
"git-tree": "3ab863fc125546487759d6672f0e459da27f5f41",
|
|
"version-string": "5.15.2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "6c44bc778ae3e400ff6f777d6f6bb68c24a81fed",
|
|
"version-string": "5.15.1",
|
|
"port-version": 2
|
|
},
|
|
{
|
|
"git-tree": "800137391209a8e9acbff74fb129f05192e159a8",
|
|
"version-string": "5.15.1",
|
|
"port-version": 1
|
|
},
|
|
{
|
|
"git-tree": "1cf3366aa520643907eaf281edd1209d46762838",
|
|
"version-string": "5.15.1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "da980816d56966ba3a62f940d8319ef211363f1e",
|
|
"version-string": "5.15.0",
|
|
"port-version": 2
|
|
},
|
|
{
|
|
"git-tree": "77f274080c535a523e638722085715dafbb00fc1",
|
|
"version-string": "5.15.0",
|
|
"port-version": 1
|
|
},
|
|
{
|
|
"git-tree": "27e55da03da89dcd727dabc0b906320ec31f9c14",
|
|
"version-string": "5.12.5",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "044db93ec24dc19cf505969bb4bc37791bff7ae1",
|
|
"version-string": "5.12.4",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "3896d169d13e7e6b0eb6969942a91e106568d1e1",
|
|
"version-string": "5.12.3-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "9aafb7c18221fa0c5b44cf02a5ff1e6fa19dc5c8",
|
|
"version-string": "5.12.3",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "e4055eb5c566c3b043d4740b604828054503bd8a",
|
|
"version-string": "5.12.1-2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "2d4c09271773156bf248f17b384756de8c26906f",
|
|
"version-string": "5.12.1-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "7896f5609bb83bf3b925fb627eaa7159b42b8950",
|
|
"version-string": "5.12.0",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "750da4a3e633dafcd60b75c720144660cfc07e27",
|
|
"version-string": "5.11.2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "4fb62f3b74a5cf05bd07e2526b0d38dd5aa8f6fe",
|
|
"version-string": "5.9.2-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "c54440a2fc7b7f56c1339015dbd88f195ef1c4f1",
|
|
"version-string": "5.8-6",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "7d62c038e2916d12bbb04cb3565fcf2377a717c5",
|
|
"version-string": "5.9.2-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "98e553c4e98e304bdea7fc602e4dd521f78de39b",
|
|
"version-string": "5.8-6",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "8ef67f83440846b3df327ad5632ab40b56a5afad",
|
|
"version-string": "5.8-5",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "fd49510b125c64b63e1177fe2c9c7ee71eab1f42",
|
|
"version-string": "5.8-4",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "ba9eae53136170ce59fb80fba94bc0017d997f76",
|
|
"version-string": "5.8-3",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "8450857e614a27d7885f65ed31a63d46e537474b",
|
|
"version-string": "5.8-2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "d8806f8aa4a51c2afb96e5e982b61ead5d1b57b9",
|
|
"version-string": "5.8-3",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "bb2f14e92545e3bfd4b00b2a57ce632b25756aba",
|
|
"version-string": "5.8-2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "057443d5b5d8c682cf1bd78edd3c20478479f533",
|
|
"version-string": "5.8-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "3d9f4415d7d6c419ea18165b1daea4a602b1ca04",
|
|
"version-string": "5.7.1-7",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "a213c34055d0653c960318382feff42c86f4f1b0",
|
|
"version-string": "5.7.1-6",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "ff901a5e6ef1fa151fad2da33289f0407c630d92",
|
|
"version-string": "5.7.1-5",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "e8694966c75688a3dea133e887487da8405182d1",
|
|
"version-string": "5.7.1-4",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "3bdfae1f98355075b40a26d0f6219561edd4edae",
|
|
"version-string": "5.7.1-3",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "8cc9d59d5a9de8271ea11b188af58ce1515f3f89",
|
|
"version-string": "5.7.1-2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "05d0534884fc11a45bd16e405fd7ffd17dd5fb51",
|
|
"version-string": "5.7.1-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "5983a3a786fed2c993e63b2441f62bff58416fb9",
|
|
"version-string": "5.7.1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "290292f1733374206d67588a3ccce9ed9c808e60",
|
|
"version-string": "5.7-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "42df162ea3ee0f8ec8ae23f9ef01664cd19008b4",
|
|
"version-string": "5.7",
|
|
"port-version": 0
|
|
}
|
|
]
|
|
}
|