vcpkg/versions/l-/lpeg.json

60 lines
1.4 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "933131ff56540fca7bbfb7a4ccd5fbf2612d4b0c",
"version": "1.1.0",
"port-version": 1
},
2023-12-12 17:22:44 +08:00
{
"git-tree": "a1832dfc0fc6e11738a1653cdf7a65ccde8903ba",
"version": "1.1.0",
"port-version": 0
},
{
"git-tree": "e364c24f0029fc6589aae6051eec09af14cc02d2",
"version": "1.0.2",
"port-version": 4
},
{
"git-tree": "d8bf7969434ee53a126d419ba7387322658967bb",
"version-string": "1.0.2",
"port-version": 3
},
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": "582d8581a1bfef351571e1ba8ea8910bdc8291fc",
"version-string": "1.0.2",
"port-version": 2
},
{
"git-tree": "453a5d8a428bfaf904e55a2178895e6d8a104ef9",
"version-string": "1.0.2-1",
"port-version": 0
},
{
"git-tree": "f5346a0c9640ea8f11b6fb81228e80063b67c907",
"version-string": "1.0.1-4",
"port-version": 0
},
{
"git-tree": "a4a9fc75abd7600a986df6a73627548f71787409",
"version-string": "1.0.1-3",
"port-version": 0
},
{
"git-tree": "fd02c13a234ce16401cd30647783d7aa647a4321",
"version-string": "1.0.1-2",
"port-version": 0
},
{
"git-tree": "98f39a54d2336eae4272c2da3ec683c1630e224b",
"version-string": "1.0.1-1",
"port-version": 0
},
{
"git-tree": "ee5d942c756ef7f339573a55fc0f40ca1efc02fb",
"version-string": "1.0.1",
"port-version": 0
}
]
}