vcpkg/versions/b-/bento4.json

35 lines
809 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "b7f9a6725e58b313fd796cf333dab7dd1d1a3bbb",
"version": "1.6.0-641",
"port-version": 0
},
{
"git-tree": "06b152ff36998df474bd8cf0fa61435d1315b609",
"version": "1.6.0-640",
"port-version": 0
},
{
"git-tree": "4da8906f31697785969422135a52cb2d0861fe53",
"version": "1.6.0-639",
"port-version": 1
},
{
"git-tree": "834cb05380588e07628713420e709264f168a567",
"version": "1.6.0-639",
"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": "bfedfc70c05cececac8e23b744b43619e2ae3125",
"version-string": "1.5.1",
"port-version": 629
},
{
"git-tree": "176077782d332c5366ab2ad4055bc76c62633d7e",
"version-string": "1.5.1-628",
"port-version": 0
}
]
}