vcpkg/versions/i-/irrlicht.json

80 lines
2.0 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "708fa654ac49d99ff5c6a3146c806d576b1b94a3",
"version": "1.8.5",
"port-version": 0
},
{
"git-tree": "a66d1403393733885e625b5f95fc1b7d3ed03505",
"version": "1.8.4",
"port-version": 14
},
{
"git-tree": "a824dffa239fccbb9b780c9926c91f1a25d000df",
"version-string": "1.8.4",
"port-version": 13
},
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": "fd24be00084e5387a0ae764c42621977340ec74b",
"version-string": "1.8.4",
"port-version": 12
},
{
"git-tree": "18ae08d6099b5457ccedbdb7209c79321a9e9027",
"version-string": "1.8.4",
"port-version": 11
},
{
"git-tree": "e2b2dd836e693401dab067c5064665e926a46b07",
"version-string": "1.8.4-10",
"port-version": 0
},
{
"git-tree": "214feb3c3310a1698e7e82607a275ce3e172d5e5",
"version-string": "1.8.4-8",
"port-version": 0
},
{
"git-tree": "36f2a0f205529376895d5165c8a60f817c414f59",
"version-string": "1.8.4-5",
"port-version": 0
},
{
"git-tree": "0bd5929ddb43fa2a977224ce6f514ba78fb1a9dd",
"version-string": "1.8.4-4",
"port-version": 0
},
{
"git-tree": "05b8bacdac66bca9f29e765c58dd145fd332a1cf",
"version-string": "1.8.4-3",
"port-version": 0
},
{
"git-tree": "0775696b834a2840bc5ec929d39d65ae594b97e4",
"version-string": "1.8.4-2",
"port-version": 0
},
{
"git-tree": "ebcdea29e03e637fc9ec3fc8dac045d8add222ad",
"version-string": "1.8.4-1",
"port-version": 0
},
{
"git-tree": "f84c9a919ea47d49acf582939c0a9ba8ac2938f9",
"version-string": "1.8.4-2",
"port-version": 0
},
{
"git-tree": "ebcdea29e03e637fc9ec3fc8dac045d8add222ad",
"version-string": "1.8.4-1",
"port-version": 0
},
{
"git-tree": "02461562e2716e368fddd855b65e60667790d3bb",
"version-string": "1.8.4",
"port-version": 0
}
]
}