vcpkg/versions/m-/murmurhash.json

40 lines
980 B
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "53f2656ff91aeec6d11585b61c650390b23e6340",
"version-date": "2016-01-09",
"port-version": 7
},
{
"git-tree": "e5ec901e9cab9845f18d18276ddea5e4ad5d4538",
"version-date": "2016-01-09",
"port-version": 6
},
{
"git-tree": "bbaeb761deb522f06cde0e3efb0610ac3e6afa4d",
"version-date": "2016-01-09",
"port-version": 5
},
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": "5c0ccc0561113eac6ab8881d62a94f31a4ab8d70",
"version-string": "2016-01-09",
"port-version": 4
},
{
"git-tree": "fb66af217c56447fa8a7d80988f461acafae4dfa",
"version-string": "2016-01-09-3",
"port-version": 0
},
{
"git-tree": "715aa14d1544da8ed79381b3139de787edcc4367",
"version-string": "2016-01-09-2",
"port-version": 0
},
{
"git-tree": "92cff1a57727a474efdf00a70ccf941a61cdad77",
"version-string": "2016-01-09",
"port-version": 0
}
]
}