vcpkg/versions/b-/brynet.json

75 lines
1.8 KiB
JSON
Raw Normal View History

{
"versions": [
2022-12-20 06:34:39 +08:00
{
"git-tree": "262acc43d0a971e687b7000da2bcdaf777c07c5e",
"version": "1.12.2",
"port-version": 0
},
{
"git-tree": "8eb954fee71dc1764d7261d36c185f42ee9c6378",
"version": "1.12.1",
"port-version": 0
},
{
"git-tree": "3a4cea82b4e937b478bd400d4a975dde33b3f741",
"version": "1.11.2",
"port-version": 0
},
{
"git-tree": "1700fdb373d8d3789f510b64aeee7d79859393f1",
"version-string": "1.11.1",
"port-version": 1
},
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": "f164bb20f8c10203d2ab57ecf5a28b5891c5259a",
"version-string": "1.11.0",
"port-version": 1
},
{
"git-tree": "228bf2b9f13cdeb9c86f1bf43d9d487e87f78c6e",
"version-string": "1.11.0",
"port-version": 0
},
{
"git-tree": "2024f1be91419c1ce3f2df23b3d4facaadcfc7fc",
"version-string": "1.10.0",
"port-version": 0
},
{
"git-tree": "bad044dbd66d5067fee727b602485d30c4ab2c09",
"version-string": "1.0.7",
"port-version": 0
},
{
"git-tree": "3b2ac80940cc348d324ea44a72cfa9045bf874be",
"version-string": "1.0.5",
"port-version": 0
},
{
"git-tree": "eb9f460da35590e7f15d1ad6ef430dac2029abad",
"version-string": "1.0.3",
"port-version": 0
},
{
"git-tree": "db463fa0a2d7511abcd288f20b5139b4057ceb9f",
"version-string": "1.0.2",
"port-version": 0
},
{
"git-tree": "27a2dfd1bf9f9189b1b096250a329116e6e56bfd",
"version-string": "1.0.0-1",
"port-version": 0
},
{
"git-tree": "6aef5fe19ed0a5a8dbce4e4f41be3e6145b7f086",
"version-string": "1.0.0",
"port-version": 0
},
{
"git-tree": "ca9a4a6c001c01483f54245afa62c747e8db8ef7",
"version-string": "0.9.0",
"port-version": 0
}
]
}