vcpkg/versions/c-/cmark.json

45 lines
1.1 KiB
JSON
Raw Normal View History

{
"versions": [
2023-10-03 11:53:42 +08:00
{
"git-tree": "46de0e92eb13e52bb044f1d925a477483fe23c80",
"version-semver": "0.30.3",
"port-version": 0
},
{
"git-tree": "4225c9caf09938ef676f688bf246026bc26fef3f",
"version-semver": "0.30.1",
"port-version": 1
},
{
"git-tree": "63d8e9056589a885ec4a36ba739903199206fff1",
"version-semver": "0.30.1",
"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 01:24:04 -07:00
{
"git-tree": "0cda97dbc7324b408739f53f493316af44dcaaf6",
"version-string": "0.29.0",
"port-version": 1
},
{
"git-tree": "64a4cd4c7db7d6aed511c8cdbac1b8339093ea4b",
"version-string": "0.29.0",
"port-version": 0
},
{
"git-tree": "e6049400752f6211b738f040231e96af36a6ab33",
"version-string": "0.28.3-3",
"port-version": 0
},
{
"git-tree": "c42765ed8387ebc52ce3541b517f2ad001e48279",
"version-string": "0.28.3-2",
"port-version": 0
},
{
"git-tree": "86267aab8dd3e577c54c787719e23835bb386e21",
"version-string": "0.28.3-1",
"port-version": 0
}
]
}