vcpkg/versions/l-/libzippp.json

50 lines
1.2 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": "40f7e8d02ea29cb28b5c0c19257aebf97def3f8e",
"version-string": "5.0-1.8.0",
"port-version": 1
},
{
"git-tree": "841560e4b583cbf85a4aca0839aa881c4cda7258",
"version-string": "5.0-1.8.0",
"port-version": 0
},
{
"git-tree": "c6ab6d33444f3671ea875f4c98bc2937b2d32ee9",
"version-string": "4.1-1.8.0",
"port-version": 0
},
{
"git-tree": "b599e7e8cf8101b7ad23965c00bca32c24de4b88",
"version-string": "4.0-1.7.3",
"port-version": 3
},
{
"git-tree": "99c1b13ef0ac377589ae37cea3323a8a448d04e1",
"version-string": "4.0-1.7.3",
"port-version": 2
},
{
"git-tree": "c32ec51923205fa390a0d5f5902c34edfd8186cd",
"version-string": "4.0-1.7.3",
"port-version": 1
},
{
"git-tree": "5c32c9de4a0ac7c50effe8a581bc141200071ed9",
"version-string": "4.0-1.7.3",
"port-version": 0
},
{
"git-tree": "149333ab08cac3634140b5e99581bfdd76b13754",
"version-string": "3.1-1.6.1",
"port-version": 0
},
{
"git-tree": "279c7fbab088703019f9032850470f233dae4f9a",
"version-string": "2019-07-22",
"port-version": 0
}
]
}