vcpkg/versions/c-/cppad.json

50 lines
1.2 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "323a35cbd75bb978954048bdbae1f650a865ca7d",
"version": "20240000.6",
"port-version": 0
},
{
"git-tree": "6a571c72f89fb09b2d665cbb244a620e60a07f35",
"version": "20240000.2",
"port-version": 0
},
2023-01-10 02:11:16 +08:00
{
"git-tree": "198bea4d165c47868b56e47297c6f46f84dfd3af",
"version": "20230000.0",
"port-version": 0
},
{
"git-tree": "e05a071cbc00d0343c57c70c2b0b043d570f8627",
"version-string": "20210000.7",
"port-version": 3
},
{
"git-tree": "5ec54e982dd160ae43272613536a53de6884d6d4",
"version-string": "20210000.7",
"port-version": 2
},
{
"git-tree": "fd043aed2197ac43f337a7806061460728cf56a8",
"version-string": "20210000.7",
"port-version": 1
},
{
"git-tree": "00e184c8de4368f8ee0b6b5dd0c16034d7a99a8f",
"version-string": "20210000.7",
"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": "f03801828709574ede2215d05d984764cc271a18",
"version-string": "20200000.3",
"port-version": 1
},
{
"git-tree": "b18a6d765c26ff523ffec8761974e16343935e79",
"version-string": "20200000.3",
"port-version": 0
}
]
}