vcpkg/versions/g-/gflags.json

85 lines
2.1 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "16da9eec785be4c0d0ad3e32cc3b39698d0611b1",
"version-string": "2.2.2",
"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": "e229646111622b3b08d98d42741e8c861487d18e",
"version-string": "2.2.2",
"port-version": 3
},
{
"git-tree": "1e2bb870b1e3592591d62f396378e25b2678d80c",
"version-string": "2.2.2",
"port-version": 2
},
{
"git-tree": "7dd635d5295af145f4601ba13219aa0d84630f27",
"version-string": "2.2.2-1",
"port-version": 0
},
{
"git-tree": "39ba6241412a077825245387c47a4c852ce17eee",
"version-string": "2.2.2",
"port-version": 0
},
{
"git-tree": "8a1a5ddb1bfdeef3bca28a5eeed54e1a994677b5",
"version-string": "2.2.1-3",
"port-version": 0
},
{
"git-tree": "baf634e885fd97d04ec201c69f8c3476a9a9eeb7",
"version-string": "2.2.1-2",
"port-version": 0
},
{
"git-tree": "39423af1f3eebe995ef703161c9ca8542554731c",
"version-string": "2.2.1-1",
"port-version": 0
},
{
"git-tree": "1b50210294077dcec83017e971b04df73b6ad951",
"version-string": "2.2.1",
"port-version": 0
},
{
"git-tree": "8767ae5dff28ff194c01839711be5963628804ac",
"version-string": "2.2.0-5",
"port-version": 0
},
{
"git-tree": "cb356e2b88dfa102e03737c8b6844d6e19cdc4e8",
"version-string": "2.2.0-4",
"port-version": 0
},
{
"git-tree": "593df2168f4f241374e47a88d00599caaa5e9912",
"version-string": "2.2.0-3",
"port-version": 0
},
{
"git-tree": "b995fb2a9bec152784685f4edd161e19ca986723",
"version-string": "2.2.0-2",
"port-version": 0
},
{
"git-tree": "47dec7ab4a4e5933b739ed97eee0ec20d338fd90",
"version-string": "2.2.0-1",
"port-version": 0
},
{
"git-tree": "91097a4b2d78bcb9367c3e758370c5baa713290a",
"version-string": "2.2.0",
"port-version": 0
},
{
"git-tree": "5eb5acbb6f05a75d26ab47ad522be9c72a11f8ce",
"version-string": "2.1.2",
"port-version": 0
}
]
}