vcpkg/versions/p-/pdal.json

70 lines
1.7 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "11280c0564220eb3e82eae1c596843daf5b79294",
"version": "1.7.1",
"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 16:24:04 +08:00
{
"git-tree": "836e512e2335367a76bc44197f3140c802897154",
"version-string": "1.7.1",
"port-version": 12
},
{
"git-tree": "b6a58e13d646cb435d82143c23a3e9e8f54f495e",
"version-string": "1.7.1",
"port-version": 11
},
{
"git-tree": "e8b9d999c233cc564ff9eac48cf8e1d9b3094f1b",
"version-string": "1.7.1",
"port-version": 10
},
{
"git-tree": "e6c3776cc6d1b8a04b66ddf495798a408b1822f2",
"version-string": "1.7.1",
"port-version": 9
},
{
"git-tree": "d479587ff8e52f6baee283f66bf1b74e50dafc79",
"version-string": "1.7.1-8",
"port-version": 0
},
{
"git-tree": "7fe32fbdc6544598c4ab1dd6a0613385f45b4320",
"version-string": "1.7.1-7",
"port-version": 0
},
{
"git-tree": "ea9bfd9927ea126b0cde975f91e770f405196cad",
"version-string": "1.7.1-6",
"port-version": 0
},
{
"git-tree": "435332f746ffdf0e142178ad7897727a801c4b36",
"version-string": "1.7.1-5",
"port-version": 0
},
{
"git-tree": "5a2a7e54be2333fa159df0d66969c68bc251b27a",
"version-string": "1.7.1-4",
"port-version": 0
},
{
"git-tree": "ff855f581bbd9c963a3f30365b51ddb038063830",
"version-string": "1.7.1-3",
"port-version": 0
},
{
"git-tree": "656d2a1b9c0f8b6ba9a9a2715719fc6d9733d3c2",
"version-string": "1.7.1-2",
"port-version": 0
},
{
"git-tree": "f090f257f102532be9c66af99aef5aa938c39923",
"version-string": "1.7.1-1",
"port-version": 0
}
]
}