vcpkg/versions/s-/stb.json

60 lines
1.5 KiB
JSON
Raw Normal View History

{
"versions": [
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": "fa6d7e998f98f122efa37f456ffa498d546185b9",
"version-string": "2020-09-14",
"port-version": 1
},
{
"git-tree": "079dbaa8fb1658d6508be38e224c79aeb99a0c46",
"version-string": "2020-09-14",
"port-version": 0
},
{
"git-tree": "023e715efdbf18f7028830bd9868fa05bc87f3e9",
"version-string": "2020-02-08-1",
"port-version": 0
},
{
"git-tree": "ba3772d1e9ebeda7ec28ac410bc40e5153f809d8",
"version-string": "2020-02-08",
"port-version": 0
},
{
"git-tree": "e8a0602db6140131007458fba1ecddedc3a6a792",
"version-string": "2019-08-17",
"port-version": 0
},
{
"git-tree": "aa84a1e6ad3df3a959f0480671fc37cfe205af5d",
"version-string": "2019-07-11",
"port-version": 0
},
{
"git-tree": "05d070e21ee5b47278c1b753bc3cbe469bc00a58",
"version-string": "2019-05-07",
"port-version": 0
},
{
"git-tree": "f7784037a32059d057135a8a2a25816ed596fe5e",
"version-string": "2019-04-19",
"port-version": 0
},
{
"git-tree": "633a4baa57514c29074a3144ccdf205225f9df21",
"version-string": "2018-03-02",
"port-version": 0
},
{
"git-tree": "8a2260d6e01360de6477d3359144fa63d02a45bf",
"version-string": "20170724-9d9f75e",
"port-version": 0
},
{
"git-tree": "58fe3328d2d641baad386d937ba8923b4b313f8a",
"version-string": "1.0",
"port-version": 0
}
]
}