vcpkg/versions/o-/ogre-next.json

40 lines
936 B
JSON
Raw Normal View History

{
"versions": [
2023-09-29 14:13:40 +08:00
{
"git-tree": "0089cd2cc3d48d19a5b465f43454dfb0124f9723",
"version": "2.3.1",
"port-version": 2
},
{
"git-tree": "6af271c0d09d27f6cea912e0b3f81a310d3992be",
"version": "2.3.1",
"port-version": 1
},
2022-07-21 06:44:03 +08:00
{
"git-tree": "41790e82daaddc561ebaf5ea9f589bd2e148e31a",
"version": "2.3.1",
"port-version": 0
},
{
"git-tree": "0b1cca4f491d535e198fc79195bf357811b4122a",
"version": "2.3.0",
"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 16:24:04 +08:00
{
"git-tree": "8d2e2e06d0b21779df8bd6579387805dc06ca6ff",
"version-string": "2019-10-20",
"port-version": 2
},
{
"git-tree": "d8a84a70373caadf837280fe2873d5d286d2c770",
"version-string": "2019-10-20-1",
"port-version": 0
},
{
"git-tree": "6f7835a22bfad4598f994f7016d1dcb9a3954a3f",
"version-string": "2019-10-20",
"port-version": 0
}
]
}