vcpkg/versions/l-/libkml.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "9941e66029546372544fed13066e9a9756981dd3",
"version": "1.3.0",
"port-version": 9
},
{
"git-tree": "1ce9dd050baf9ae42da2bb0c6d0feae1241b6e01",
"version-string": "1.3.0",
"port-version": 8
},
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": "c2647d8b06542a475e0de99aedc3ce939a10b35d",
"version-string": "1.3.0",
"port-version": 7
},
{
"git-tree": "6c50197fe3bf38682b4e551e501834817990ad3e",
"version-string": "1.3.0",
"port-version": 6
},
{
"git-tree": "1e5d050adfd9a0b7f79674fec5f355c059d9672c",
"version-string": "1.3.0",
"port-version": 5
},
{
"git-tree": "7c7a760c34c4657583058b26eaec51e577ab5fd5",
"version-string": "1.3.0-4",
"port-version": 0
},
{
"git-tree": "a181cbd8a609bbf04ee0d78eb1d7e35db07eba2a",
"version-string": "1.3.0-3",
"port-version": 0
},
{
"git-tree": "4fa998e43456236b384a2837c8d5172faef37e60",
"version-string": "1.3.0-2",
"port-version": 0
},
{
"git-tree": "0f858c8c5a7046e08761a824310fc453e724f108",
"version-string": "1.3.0-1",
"port-version": 0
},
{
"git-tree": "048c6dda3ebb7541f030b10d1b7167b758b68072",
"version-string": "1.3.0",
"port-version": 0
}
]
}