vcpkg/versions/t-/trompeloeil.json

65 lines
1.5 KiB
JSON
Raw Normal View History

{
"versions": [
2024-10-08 03:05:09 +08:00
{
"git-tree": "d24143089754e699fc9761f7ce0913c1fb935100",
"version": "48",
"port-version": 0
},
2024-04-02 04:49:23 +08:00
{
"git-tree": "ffcf456c31c46ad2499e4e63ea00aefdc34459ef",
"version": "47",
"port-version": 0
},
2023-09-24 13:08:55 +08:00
{
"git-tree": "a00a802a482a267ddba63aae7ce5f89973427210",
"version": "45",
"port-version": 0
},
{
"git-tree": "876864d2915f8530d28bd8a2c6ca0fd418dd7829",
"version": "43",
"port-version": 0
},
{
"git-tree": "7345802a43866751e65d0ce0caaa24566a1b7a3a",
"version": "41",
"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 01:24:04 -07:00
{
"git-tree": "5691d561cb4ae588d604882cd58539b406222cac",
"version-string": "38",
"port-version": 1
},
{
"git-tree": "494fa9278d6ca20444defeab2b2557998ec2d1d3",
"version-string": "38",
"port-version": 0
},
{
"git-tree": "79c2939e301583f87a67e5247bbec3b46db0fc23",
"version-string": "36",
"port-version": 0
},
{
"git-tree": "c6c74144cc6cbfee2bb85191513da247b004d580",
"version-string": "34-1",
"port-version": 0
},
{
"git-tree": "de744a8552bc4f544d7e9c3b2801b427e40728a5",
"version-string": "34",
"port-version": 0
},
{
"git-tree": "e4e95d160cde07e97131b787b8dbb9196d4d0d7f",
"version-string": "33",
"port-version": 0
},
{
"git-tree": "c7bbc1f9e769e3cd71dbc4598187fad06bd034d1",
"version-string": "32-1",
"port-version": 0
}
]
}