vcpkg/versions/e-/exprtk.json

75 lines
1.9 KiB
JSON
Raw Normal View History

{
"versions": [
2022-02-01 07:21:16 +08:00
{
"git-tree": "f643b034afeb28a7e39b6556eb78594aa49181a4",
"version-date": "2022-01-01",
"port-version": 2
},
{
"git-tree": "2cf53dbae59a6b96821ac0407d0bb9a87dd2561c",
"version-date": "2021-01-01",
"port-version": 2
},
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": "f43789e8da0899715ef1d0544880baa13ce38d64",
"version-string": "2021-01-01",
"port-version": 1
},
{
"git-tree": "497f4b1dc2da32e75f934ba6d0e496a4dc0b01ae",
"version-string": "2021-01-01",
"port-version": 0
},
{
"git-tree": "8052628829fe4c863db89f423ea72afb169db258",
"version-string": "2020-09-14",
"port-version": 0
},
{
"git-tree": "70f8fa916a05424b2c9c847e3430fd6ccc442712",
"version-string": "2020-01-01",
"port-version": 0
},
{
"git-tree": "701185b6ca41473835a65e659acd8557877aa866",
"version-string": "2019-07-11",
"port-version": 0
},
{
"git-tree": "45114fc733c0760141abe9271eaa1e747890ee3b",
"version-string": "2019-03-29",
"port-version": 0
},
{
"git-tree": "e86a684d83a39e347e719ee1520ae8b621a60d3b",
"version-string": "2019-01-09",
"port-version": 0
},
{
"git-tree": "4b4e53d6dc9e1044d4c4a36cbfb80e6a773158db",
"version-string": "2018-12-14",
"port-version": 0
},
{
"git-tree": "5ac1d0e72bb1cd44883b18257bb2753c0b4246e9",
"version-string": "2018-10-11",
"port-version": 0
},
{
"git-tree": "abe7e1a710cfd4d93eec6602eeab53e76830f398",
"version-string": "2018.09.30-9836f21",
"port-version": 0
},
{
"git-tree": "6f843b1c41139e5ea0ecb94c4c23f528a92d4ea2",
"version-string": "2018.04.30-46877b6",
"port-version": 0
},
{
"git-tree": "afccdbf107de0a65a40b4573411739f2dd4d73ca",
"version-string": "2018.01.01-f32d2b4",
"port-version": 0
}
]
}