vcpkg/versions/i-/ignition-modularscripts.json

55 lines
1.4 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": "0b00233924c15f702784cb2342b469771125c3a5",
"version-string": "2020-11-23",
"port-version": 1
},
{
"git-tree": "29ded62ecf82daf0e42756ed617c38aa98fb215a",
"version-string": "2020-11-23",
"port-version": 0
},
{
"git-tree": "32d32f91b04ab247f2febd2097834b24f1384114",
"version-string": "2020-05-16",
"port-version": 2
},
{
"git-tree": "2d89e9326d7b330c1e11db6f01a78991bfe1b1d3",
"version-string": "2020-05-16",
"port-version": 1
},
{
"git-tree": "18f34d6551c407e49c8d81dc6ca22c7fd7a079eb",
"version-string": "2020-05-16",
"port-version": 0
},
{
"git-tree": "834d4b6ebc371c448f2e322cfa34d29f0cfc11c4",
"version-string": "2020-05-09",
"port-version": 0
},
{
"git-tree": "be14de1c2204f8d09cf076b622e14f81099bdbbd",
"version-string": "2020-04-16",
"port-version": 0
},
{
"git-tree": "8085dcf458f3d90246ee830f4dd5f9ba13b1d09b",
"version-string": "2020-02-10",
"port-version": 0
},
{
"git-tree": "cf763d56e064e5c230385fc41a42cf5fac6b4b41",
"version-string": "2019-09-11",
"port-version": 0
},
{
"git-tree": "f9cbdac4ce316ddb2877c5e8389a33eda4b1bac3",
"version-string": "2019-08-20",
"port-version": 0
}
]
}