vcpkg/versions/t-/tidy-html5.json

75 lines
1.8 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "3ff916aaab30ac5a85e702ab9cf4e8092db79477",
"version": "5.8.0",
"port-version": 1
},
{
"git-tree": "e16455cbec8214de37e3deb0ad41fe57323a7dd0",
"version": "5.8.0",
"port-version": 0
},
{
"git-tree": "2e4c85fc988591dc5b25baac22c4e83dde7b7f64",
"version": "5.7.28",
"port-version": 6
},
{
"git-tree": "bf333a8afdee1d7e0129928022e228cc092ed5de",
"version": "5.7.28",
"port-version": 5
},
{
"git-tree": "ba5557c5b17df0184bd2ee1eeee06ec1131576f8",
"version-string": "5.7.28",
"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": "6b446932540002cb1b664d7f5286fdb6c0f7af28",
"version-string": "5.7.28",
"port-version": 3
},
{
"git-tree": "b050c4d466a093f1322998c0c2c356698954bc40",
"version-string": "5.7.28-2",
"port-version": 0
},
{
"git-tree": "3bf8e46176d46eb4f2257eae9125e0f3b7d4e14d",
"version-string": "5.7.28-1",
"port-version": 0
},
{
"git-tree": "2fd4ec0db75ada0702deee02df23d08760decd1e",
"version-string": "5.7.28",
"port-version": 0
},
{
"git-tree": "d044424f994b97e93466cc4d0f8e5de145452cd9",
"version-string": "5.6.0-1",
"port-version": 0
},
{
"git-tree": "81b0263817c84a34e56920ba932f10ad23c07427",
"version-string": "5.6.0",
"port-version": 0
},
{
"git-tree": "954df61d2f7aac784611519277c395fc9e26007f",
"version-string": "5.4.0-2",
"port-version": 0
},
{
"git-tree": "9536522198412a2c1a5dae3522e4ec50add7b9c4",
"version-string": "5.4.0-1",
"port-version": 0
},
{
"git-tree": "f67593b0a7ff5dba6d5aa76743d9ac64f6a02d09",
"version-string": "5.4.0",
"port-version": 0
}
]
}