vcpkg/versions/u-/usbmuxd.json

65 lines
1.6 KiB
JSON
Raw Normal View History

{
"versions": [
{
"git-tree": "edc61063b642372c7d9de82f7ecc55ed39971c3d",
"version-date": "2023-07-21",
"port-version": 0
},
{
"git-tree": "4116e3cd80421add75aeeb413386b03cbfad5670",
"version": "1.2.235",
"port-version": 5
},
{
"git-tree": "f2c137f8ea6a9f68922e301479aa2b251c130636",
"version": "1.2.235",
"port-version": 4
},
{
"git-tree": "b3f2cea522d35497750ecfd9446e29bf034b4d21",
"version": "1.2.235",
"port-version": 3
},
{
"git-tree": "53c6e0e8c2a4f5db93d2a41d51d2aa8ba68b8e7e",
"version": "1.2.235",
"port-version": 2
},
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": "072dd356dfeda50c73780a204db5f5f6224cd35c",
"version-string": "1.2.235",
"port-version": 1
},
{
"git-tree": "d48f5f4611e4a59ccafc8c4dbb9ec1db1344994c",
"version-string": "1.2.235",
"port-version": 0
},
{
"git-tree": "b2b448b3015c6f16e719e82b58b9688b9bdc1529",
"version-string": "1.2.76-1",
"port-version": 0
},
{
"git-tree": "161f454b21df94db56abf4e7c768e190ebc25c69",
"version-string": "1.2.76",
"port-version": 0
},
{
"git-tree": "9c64faa8028f7a93c5b2afb4f163172a1c6a84d0",
"version-string": "1.1.1.133-3",
"port-version": 0
},
{
"git-tree": "3944c4682d2ef1fa94208423b5ea1930104c62c7",
"version-string": "1.1.1.133-2",
"port-version": 0
},
{
"git-tree": "270968b945e6c6e7b7fefe1aab69de72c382314a",
"version-string": "1.1.1.133-1",
"port-version": 0
}
]
}