vcpkg/versions/m-/mp3lame.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "86d297de90265851ff47145e3aeb48738139a4d9",
"version": "3.100",
"port-version": 10
},
{
"git-tree": "e24c300cc7a378ed1355ca4edba742a11d0d7a7a",
"version": "3.100",
"port-version": 9
},
{
"git-tree": "bd7f2793ec89d5ce9c00b4b9848a80905eb7ab67",
"version": "3.100",
"port-version": 8
},
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": "ead40ed860e86cd8c3c5492b9bb3fcc7c8a2770e",
"version-string": "3.100",
"port-version": 7
},
{
"git-tree": "ea9ad10f5f14516799474a20ee31662f7de8d52a",
"version-string": "3.100",
"port-version": 6
},
{
"git-tree": "6fddb425e79c5b504af2e3fef17c629bc1ef2305",
"version-string": "3.100",
"port-version": 5
},
{
"git-tree": "3903e277648fc5c88473f9759550e834c7a3d575",
"version-string": "3.100",
"port-version": 4
},
{
"git-tree": "d76fd2722d821ea56571b6a0752746d60831edf5",
"version-string": "3.100-3",
"port-version": 0
},
{
"git-tree": "3a83237960b5f3c8f927dcf060fa858289772545",
"version-string": "3.100-1",
"port-version": 0
},
{
"git-tree": "a6dd356e37318d4b893c22de3b4205cdea540e40",
"version-string": "3.100",
"port-version": 0
}
]
}