vcpkg/versions/d-/detours.json

50 lines
1.2 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "42c4e92ed3e8e461427f2f3e971c0f936c34b285",
"version": "4.0.1",
"port-version": 8
},
{
"git-tree": "6a73bd010a9e693e683b647ce04855efca88f4d5",
"version": "4.0.1",
"port-version": 7
},
{
"git-tree": "7c418a44692bd9eb06163e66ea779dfd57b84e07",
"version": "4.0.1",
"port-version": 6
},
{
"git-tree": "9dc31719cf3c251f0530bf8ddb5c6131590386da",
"version": "4.0.1",
"port-version": 5
},
{
"git-tree": "5399f9185e9e7d815bf3c8380e745b5be77c2258",
"version-string": "4.0.1",
"port-version": 4
},
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": "c2b285f4028fc968bc2b4b04f7c3be5a9070d9df",
"version-string": "4.0.1",
"port-version": 3
},
{
"git-tree": "7400c2c8b63f9576a4b5e4464ad5d8e36d33e1d6",
"version-string": "4.0.1",
"port-version": 2
},
{
"git-tree": "ab6a570459cbae07325fbfdd4b51992c9dad3e41",
"version-string": "4.0.1-1",
"port-version": 0
},
{
"git-tree": "70b3a37716498dc7d45218e40a984b3a77c35b1b",
"version-string": "4.0.1",
"port-version": 0
}
]
}