vcpkg/versions/b-/bde.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
2024-10-04 23:40:05 +08:00
{
"git-tree": "2614291015d6a8d0f554c6d9592abd4643b9717e",
"version": "4.14.0.0",
"port-version": 0
},
{
"git-tree": "bcc715b2f958a15fb5f05a8a5f717b8091c35f05",
"version": "4.8.0.0",
"port-version": 1
},
{
"git-tree": "fa76296b5abefaf07a8f663ced20cea1a0c901b6",
"version": "4.8.0.0",
"port-version": 0
},
{
"git-tree": "f8c8bc5beb99b215e68af4269bc1bac20957d485",
"version": "3.124.0.0",
"port-version": 0
},
{
"git-tree": "71df70f3716434e8069b394593ba8859b6556959",
"version": "3.123.0.0",
"port-version": 0
},
{
"git-tree": "a8fc4329574711907399309f06012a486d373c64",
"version": "3.117.0.0",
"port-version": 0
},
{
"git-tree": "7ce72f2854f44eee806e6e5f3e97d29897549787",
"version": "3.2.0.0",
"port-version": 5
},
{
"git-tree": "60082ad73e5c9fb9828041183b026fc15e453218",
"version-string": "3.2.0.0",
"port-version": 4
},
Bulk convert control files. (#19986) ``` 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 ```
2021-09-09 16:24:04 +08:00
{
"git-tree": "b940e98efec0d1f48f2edfe2027d2bce251ec7a8",
"version-string": "3.2.0.0",
"port-version": 3
},
{
"git-tree": "b1182a3ba7b24edd58e7471796c1f157c9ff402c",
"version-string": "3.2.0.0",
"port-version": 2
},
{
"git-tree": "d25bfe5e576d146569520871134a5c6fecb16a96",
"version-string": "3.2.0.0-1",
"port-version": 0
},
{
"git-tree": "0ee2aa4b9efbf8de1fc277f0064e6022fbfac778",
"version-string": "3.2.0.0",
"port-version": 0
}
]
}