vcpkg/versions/l-/lastools.json

35 lines
827 B
JSON
Raw Normal View History

{
"versions": [
2024-08-14 06:34:02 +08:00
{
"git-tree": "ef0c4018e358e6adb7835f43588e759537401811",
"version": "2.0.3",
"port-version": 0
},
{
"git-tree": "c8eec220c3958c88af0050876e69d8b7f5d3d945",
"version": "2.0.2+20230206",
"port-version": 1
},
{
"git-tree": "ba9574b3fd9117129064d6494b93c3587f2dcf3c",
"version": "2.0.2+20230206",
"port-version": 0
},
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": "6401b05621966caf0aaebc6a4dedb0c696c6c53f",
"version-string": "2020-05-09",
"port-version": 1
},
{
"git-tree": "8a301426473ec3a9afb9a013ff3d04fd1197fba4",
"version-string": "2020-05-09",
"port-version": 0
},
{
"git-tree": "389c49ae33a5f59de433424ee62c1de2e2beb0c3",
"version-string": "2019-07-10",
"port-version": 0
}
]
}