vcpkg/versions/l-/libgcrypt.json

55 lines
1.3 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "fb85f5dab3e4cacb5da45cf352ca23a25d7c4d18",
"version": "1.10.2",
"port-version": 0
},
{
"git-tree": "47460b53b2ea4430d6b020f00d4a4557ef690427",
"version": "1.10.1",
"port-version": 1
},
{
"git-tree": "ba183f10b284405f9b4b50720d7583131a87d393",
"version": "1.10.1",
"port-version": 0
},
{
"git-tree": "8c0737adf68a0ada3ed976e4acf201b4cbeb9dfe",
"version": "1.9.4",
"port-version": 2
},
2021-11-23 07:53:13 +08:00
{
"git-tree": "e850fdb19fd41c8270ea52dfa3dbe346b23e25f5",
"version": "1.9.4",
"port-version": 1
},
{
"git-tree": "7b99b42dfc0f469a13d4e39d9802012b9a7e78d1",
"version": "1.9.4",
"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": "43a3a46962e0195eefd661d621f1a69c267d067e",
"version-string": "1.8.7",
"port-version": 2
},
{
"git-tree": "394e5b7b433e4b18e9276c48b7331fbea30034ba",
"version-string": "1.8.7",
"port-version": 1
},
{
"git-tree": "3a7be352162b1187194ba75ff3514361213f77a6",
"version-string": "1.8.7",
"port-version": 0
},
{
"git-tree": "4fd1f0fdf10d205488c813a331b0547e9ab9bbc0",
"version-string": "1.8.6",
"port-version": 0
}
]
}