vcpkg/versions/l-/libmad.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "ff3cd79e45546dc58e00a69696ae1f8b900e231a",
"version-string": "0.15.1",
"port-version": 10
},
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": "820bd670c6652cdb1b381f9c55390a261f11e842",
"version-string": "0.15.1",
"port-version": 9
},
{
"git-tree": "c26ef39816280a812e249d0af4ba2ce58a0cf19d",
"version-string": "0.15.1-8",
"port-version": 0
},
{
"git-tree": "6b2336b239a812d626ac6c62ab857d5dd46b7381",
"version-string": "0.15.1-6",
"port-version": 0
},
{
"git-tree": "28aadf7073b547e09a2fc85945a5081a4f285c07",
"version-string": "0.15.1-5",
"port-version": 0
},
{
"git-tree": "ff4a50dd4fa6d6f7bd1dac496f3a2f5094878111",
"version-string": "0.15.1-4",
"port-version": 0
},
{
"git-tree": "b05e64321f97af083e700f35d3e3347ccb1d537b",
"version-string": "0.15.1-3",
"port-version": 0
},
{
"git-tree": "c35949aaadbab59dcb960d25e46028324bbaaa05",
"version-string": "0.15.1-2",
"port-version": 0
},
{
"git-tree": "a8c706e67ff6ac3ff9a27e76511f8b5bbc752c19",
"version-string": "0.15.1-1",
"port-version": 0
},
{
"git-tree": "58458427ddd0f76c199e688e2135ce93e27d2259",
"version-string": "0.15.1",
"port-version": 0
}
]
}