vcpkg/versions/o-/opencc.json

80 lines
2.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "85a9b30209f5cd7460d2be2c8e1cc206fab66aaa",
"version": "1.1.6",
"port-version": 1
},
2023-02-24 03:11:11 +08:00
{
"git-tree": "246c0e831df06a5235e750d5af71b7cd9b2cc904",
"version": "1.1.6",
"port-version": 0
},
{
"git-tree": "463a25b4f9bfe6a259042a54cdd813ae7f96f4c9",
"version": "1.1.4",
"port-version": 3
},
2022-08-27 03:11:07 +08:00
{
"git-tree": "2339a48f2758995166b42d82c9eb22c880190ac3",
"version": "1.1.4",
"port-version": 2
},
{
"git-tree": "bfa36e95a55659eb27edc3ba561b3c06b202ff76",
"version": "1.1.4",
"port-version": 1
},
{
"git-tree": "9c886059bbc8c7c14a7d7290b22e2036c3ff8fe6",
"version": "1.1.4",
"port-version": 0
},
{
"git-tree": "10bc4f21926d1c116227ba57e954c4f8a6c9e999",
"version-date": "2020-04-26",
"port-version": 10
},
{
"git-tree": "b7f1756b470f31ae2da4a2d65eb5c409d4798b8e",
"version-string": "2020-04-26",
"port-version": 9
},
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": "4236b23738ad59b661253bf3a449355d838cb7dc",
"version-string": "2020-04-26",
"port-version": 8
},
{
"git-tree": "cd8da026ffad42709da43cbbc8105ed1cdd01c70",
"version-string": "2020-04-26",
"port-version": 7
},
{
"git-tree": "7257ac86f4aa09110b2715e6084307721410d194",
"version-string": "2020-04-26-6",
"port-version": 0
},
{
"git-tree": "692fcf28cdfa738d78737f7a7662e45f2c351986",
"version-string": "2020-04-26-4",
"port-version": 0
},
{
"git-tree": "1afb1e53661aafaf3c29cc4e9e737fc1f21b3678",
"version-string": "2020-04-26-3",
"port-version": 0
},
{
"git-tree": "2429812f85e03684ce1d9bfc6c0c52507883018f",
"version-string": "2020-04-26-2",
"port-version": 0
},
{
"git-tree": "71b9bac92955af0614db11b45379500b17ece077",
"version-string": "2020-04-26-1",
"port-version": 0
}
]
}