vcpkg/versions/c-/cpp-netlib.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
2023-09-14 06:40:46 +08:00
{
"git-tree": "f4a974a775695cdf6b1bcc82fc98c993f887b006",
"version": "0.13.0",
"port-version": 9
},
{
"git-tree": "ac3709aa4c5d5b70f38764f2fa7e0b8f8e891d96",
"version": "0.13.0",
"port-version": 8
},
{
"git-tree": "a71758ba258596edd94871670c3d8f7cec334e37",
"version-string": "0.13.0",
"port-version": 7
},
{
"git-tree": "49ff4ae830f2e1ae9141ea3155c6d962ca1c7946",
"version-string": "0.13.0",
"port-version": 6
},
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": "28abab182be22ac70207027a6a7e206416bd28b0",
"version-string": "0.13.0",
"port-version": 5
},
{
"git-tree": "52deb7c24c307a3089b818d3b35bd7b19b1e4dc2",
"version-string": "0.13.0",
"port-version": 4
},
{
"git-tree": "8a0b0215fd6f8ac92b1ef9a159531840551c8dbb",
"version-string": "0.13.0-3",
"port-version": 0
},
{
"git-tree": "1eec50f9389302cc76df41306d01d955f5a67d22",
"version-string": "0.13.0-2",
"port-version": 0
},
{
"git-tree": "b3f4a127b4bb5ce74bc1081465c12c7ab0da1f75",
"version-string": "0.13.0-final",
"port-version": 0
},
{
"git-tree": "c87e2c49f00112069635fddc0d0b4b24ce9e3036",
"version-string": "0.13.0-rc3",
"port-version": 0
}
]
}