vcpkg/versions/h-/hyperscan.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "174fd7953b696f08703b580901a840cc53157439",
"version": "5.4.2",
"port-version": 0
},
{
"git-tree": "72c36aba3fff7cd403bdf02ad8f691ced9da30a9",
"version": "5.4.0",
"port-version": 0
},
{
"git-tree": "14beb85ac3a741f5504afa923832eb651795f530",
"version-string": "5.3.0",
"port-version": 3
},
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": "442b4a5b4350665bc7d9fb3b0f734f1fa088973a",
"version-string": "5.3.0",
"port-version": 2
},
{
"git-tree": "1a0f3d2c664a03ed56917c7eb127fa907e4c3386",
"version-string": "5.3.0",
"port-version": 1
},
{
"git-tree": "3932d96d4ba2d75bfc41532938375e10e453817c",
"version-string": "5.3.0",
"port-version": 0
},
{
"git-tree": "333aac02c9fbf8c23e05328494c0079576be8e68",
"version-string": "5.2.1-1",
"port-version": 0
},
{
"git-tree": "51dd21b9ebd700d24a9ac034072ca09b5e40a406",
"version-string": "5.2.1",
"port-version": 0
},
{
"git-tree": "ef883e470f2ad9298986d82d6ed299a6a9a0ba55",
"version-string": "5.1.0-4",
"port-version": 0
},
{
"git-tree": "ccca38886f217e80c1d36f77c0d9057b18cf60b3",
"version-string": "5.1.0-3",
"port-version": 0
},
{
"git-tree": "f3775fe5c4acf7545b436081ba4af850f0edc143",
"version-string": "5.0.1-2",
"port-version": 0
},
{
"git-tree": "2f92dfa4257072709424f97ca61360b81be8efdb",
"version-string": "5.0.1-1",
"port-version": 0
}
]
}