vcpkg/versions/l-/libcerf.json

35 lines
787 B
JSON
Raw Normal View History

{
"versions": [
2024-08-20 00:58:36 +08:00
{
"git-tree": "f2f77d2b2c3bc81887b4a6a3f398acc42e4e59d0",
"version": "2.4",
"port-version": 0
},
{
"git-tree": "7d9138bfd878a5de79822e201b0e83649715121c",
"version": "1.13",
"port-version": 4
},
{
"git-tree": "1aed61567fd3da5dc36a9a5290262b389ab79fa5",
"version": "1.13",
"port-version": 3
},
{
"git-tree": "e4bb4a4b841e96215ccc856fa1b8acc56270a1e4",
"version-string": "1.13",
"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": "c9e514fd4a455016bc077fb0af7703a947868273",
"version-string": "1.13",
"port-version": 1
},
{
"git-tree": "46f542929aebafbe41f76a66e1073c94acf9936d",
"version-string": "1.13",
"port-version": 0
}
]
}