vcpkg/versions/s-/spatialite-tools.json

80 lines
2.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "1e91990a5c6a01d86cc1b4cb84bbea812e62b450",
"version": "5.0.1",
"port-version": 1
},
{
"git-tree": "bd6f0ddd2db2c709ce3bd94df91dced9e3d23c7e",
"version-string": "5.0.1",
"port-version": 0
},
{
"git-tree": "e31f1f43c34f7ab68bfbfcfe1a9edcd8040c3373",
"version-string": "5.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": "f9263bb3c351d6d5333538e6d22e29da6253a702",
"version-string": "5.0.0",
"port-version": 3
},
{
"git-tree": "a54d2d339b5eaf4d37fc125c49b939822fdaf3ba",
"version-string": "5.0.0",
"port-version": 2
},
{
"git-tree": "e3d595427bd0b0cf8ddaadc45e400b5c1f9c1ccc",
"version-string": "5.0.0",
"port-version": 1
},
{
"git-tree": "2a9685999c784265e25e4f2bde708a724721e906",
"version-string": "5.0.0",
"port-version": 0
},
{
"git-tree": "de163c8fccab535db7c559fad289f492050c5292",
"version-string": "4.3.0",
"port-version": 7
},
{
"git-tree": "d43abce1d0acddfaa4309f22f635708c02b71a4c",
"version-string": "4.3.0",
"port-version": 6
},
{
"git-tree": "23cd3b937f595278fa3d7df6f780ce9756db1768",
"version-string": "4.3.0",
"port-version": 5
},
{
"git-tree": "34f7d0f85acb618f11b7735be391e605b0cdefbf",
"version-string": "4.3.0",
"port-version": 4
},
{
"git-tree": "a3a3434bfff7b3fb4dac3cf6ef8e82b8b3388f8e",
"version-string": "4.3.0",
"port-version": 3
},
{
"git-tree": "690d48e030e0507dc2d9e1a1fd7c56260c7fa869",
"version-string": "4.3.0-2",
"port-version": 0
},
{
"git-tree": "a63f075c0face000744d43dd52dc9bea06056baf",
"version-string": "4.3.0-1",
"port-version": 0
},
{
"git-tree": "31139dd5d9fb6c1f4708329188faf693f776ef59",
"version-string": "4.3.0",
"port-version": 0
}
]
}