vcpkg/versions/l-/libmaxminddb.json

45 lines
1.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "446fd110747f3e6bc09f822e89d30f144eb52a9f",
"version": "1.9.1",
"port-version": 0
},
{
"git-tree": "a396718bfaa9c8e9e950cb3aaedb7bd562a157a7",
"version": "1.7.1",
"port-version": 0
},
{
"git-tree": "2bac54e78c424e4420145ae4a407e7b88229a387",
"version": "1.4.3",
"port-version": 3
},
{
"git-tree": "71bed10d6ad6ff2a80692e0b920e01e3c7509bf7",
"version-string": "1.4.3",
"port-version": 2
},
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": "7da47031497942277e14b01feab9e6d7d1491443",
"version-string": "1.4.3",
"port-version": 1
},
{
"git-tree": "705c0ebe7b045c299e7222fd49afd7625e3e1aaf",
"version-string": "1.4.3",
"port-version": 0
},
{
"git-tree": "76800a1a88d9b1f3bb854357e6e2f5c217672cc9",
"version-string": "1.3.2-2",
"port-version": 0
},
{
"git-tree": "dfcdb10d9c258dcd361087cd5320465c1e101004",
"version-string": "1.3.2-1",
"port-version": 0
}
]
}