vcpkg/versions/g-/geogram.json

95 lines
2.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "2be512adda374e08c638f617f81f86b3dc3099a0",
"version": "1.7.6",
"port-version": 3
},
{
"git-tree": "d68db6c8078b7598e5bed6550a911f791ae63ab3",
"version": "1.7.6",
"port-version": 2
},
{
"git-tree": "d6d9b9c3652ebbfd846a225ba06a1867e0a6ba25",
"version": "1.7.6",
"port-version": 1
},
{
"git-tree": "3a40b9eb7d73644d89c9987fc0b8da98c7ae2a94",
"version": "1.7.6",
"port-version": 0
},
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": "49ffd07c56bc8a0017e243bd36dfcbbb63230409",
"version-string": "1.7.5",
"port-version": 4
},
{
"git-tree": "178ba7fc99040231738fd282389038df5b032173",
"version-string": "1.7.5",
"port-version": 3
},
{
"git-tree": "3661680b65627a46b6570d9017100f3e64d1f742",
"version-string": "1.7.5",
"port-version": 2
},
{
"git-tree": "d248018f0bdde0fdb6d27b8f2994eeac71cf88b7",
"version-string": "1.7.5",
"port-version": 1
},
{
"git-tree": "6fe5b800672699045732c9b80cc26473f18dbe21",
"version-string": "1.7.5",
"port-version": 0
},
{
"git-tree": "b00cc11186674c48e242ffd936b9ab406cad9d88",
"version-string": "1.6.9",
"port-version": 8
},
{
"git-tree": "fa45a82c396d39b2bfaf69ba856a8091a5d0e4ff",
"version-string": "1.6.9-7",
"port-version": 0
},
{
"git-tree": "27d5f56c9b3cf919ecf96797674525cbe336f843",
"version-string": "1.6.9-6",
"port-version": 0
},
{
"git-tree": "96032ec3b2b1320f1ff7aaa3c3e008e4dab7bb52",
"version-string": "1.6.9-3",
"port-version": 0
},
{
"git-tree": "52bb9e8f3dc50ff567d53096d94c37f5f428bc8d",
"version-string": "1.6.9-2",
"port-version": 0
},
{
"git-tree": "c9a2bb4c6418d001c16a4eeb0625747c74cf8d3d",
"version-string": "1.6.4",
"port-version": 0
},
{
"git-tree": "eb43d5f3fd1cfd25be60b75117735fb547d4f217",
"version-string": "1.6.0-1",
"port-version": 0
},
{
"git-tree": "0822334912bec36a41f2e28fa8c3dc14cf50e48c",
"version-string": "1.4.9-1",
"port-version": 0
},
{
"git-tree": "b079bd8c75a8d18f74404fab1081b7928b26a87a",
"version-string": "1.4.9",
"port-version": 0
}
]
}