vcpkg/versions/u-/urdfdom.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 01:24:04 -07:00
{
"git-tree": "1022fc5895356fb9cd1c37767cf2397e4edfd415",
"version-string": "1.0.4",
"port-version": 4
},
{
"git-tree": "c8509aadcb49f4193730203193f79f32d4176400",
"version-string": "1.0.4",
"port-version": 3
},
{
"git-tree": "31ee31e52dcb55cdb49ed1d1c19f9f7f270a7254",
"version-string": "1.0.4",
"port-version": 2
},
{
"git-tree": "d42a81b1878307be5db68396998302640cdc83a4",
"version-string": "1.0.4-1",
"port-version": 0
},
{
"git-tree": "5fe19f849e38fa140a56ea0f8df1cd9929be7701",
"version-string": "1.0.4",
"port-version": 0
},
{
"git-tree": "49530dffb2f4a5fdc0dd18d68e4f794d933200dc",
"version-string": "1.0.3-2",
"port-version": 0
},
{
"git-tree": "d597bd0264bf4fda4412787ad874b3fbf2d18b71",
"version-string": "1.0.3-1",
"port-version": 0
},
{
"git-tree": "8c5c5f6c4c4dea770456c640416a21772700736b",
"version-string": "1.0.3",
"port-version": 0
},
{
"git-tree": "b9a7c0503e330b910154b25f3b292f12f2cf9e1c",
"version-string": "1.0.0-3",
"port-version": 0
},
{
"git-tree": "234a1dc439db09b6c7aa432826b856cc4a80bbea",
"version-string": "1.0.0-2",
"port-version": 0
},
{
"git-tree": "3b307ece0038babee7ae7f57863ece85e0a2efc4",
"version-string": "1.0.0-1",
"port-version": 0
}
]
}