vcpkg/versions/l-/libzippp.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
2023-05-02 06:18:43 +08:00
{
"git-tree": "c15b10fa38a22c6ff395d7a87c3a4f02c5586add",
"version": "6.1-1.9.2",
"port-version": 0
},
{
"git-tree": "9b0548bad2ec87607ee6dec3e94ee4d3140ff726",
"version": "6.0-1.9.2",
"port-version": 0
},
{
"git-tree": "0e5a10e0beabc7b9a1f9f313e62a1c73833e1c4f",
"version": "5.1-1.8.0",
"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": "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
}
]
}