vcpkg/versions/a-/azure-c-shared-utility.json
Billy O'Neal b295670e4b
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 01:24:04 -07:00

145 lines
3.8 KiB
JSON

{
"versions": [
{
"git-tree": "004bb7eb46adf65294137426bfa60868a7a9be93",
"version-string": "2020-12-09",
"port-version": 2
},
{
"git-tree": "aeea4eb6de3e3db197e350ba3e8ebb6a9bfaa154",
"version-string": "2020-12-09",
"port-version": 1
},
{
"git-tree": "67f510493f8011d403918b4da617f970d9cff74c",
"version-string": "2020-12-09",
"port-version": 0
},
{
"git-tree": "4c625de7e91f3a5ee7436bab7f36808e3174a418",
"version-string": "2020-07-19",
"port-version": 0
},
{
"git-tree": "e0cadffece84a5453207e36695258e2035d7a975",
"version-string": "2020-06-17-1",
"port-version": 0
},
{
"git-tree": "4628674e9a38f1003f4366a8a6258514c2c53a01",
"version-string": "2020-02-04.1",
"port-version": 0
},
{
"git-tree": "9ad6e737af31d3f7d519c5672da9ff994a88ca92",
"version-string": "2020-01-22-1",
"port-version": 0
},
{
"git-tree": "e76ebdc7e003ea3ec5c1220fb5af21f4f4373bd1",
"version-string": "2020-01-22",
"port-version": 0
},
{
"git-tree": "679836f28df60473388c9b1da394fd3bde2283ad",
"version-string": "2019-10-07.2-1",
"port-version": 0
},
{
"git-tree": "e37ed048340182e819e3c379c8fbb4e43743bb2f",
"version-string": "2019-10-07.2",
"port-version": 0
},
{
"git-tree": "50520ec3d56f9edf54c164193613c41d0bea2827",
"version-string": "2019-07-01-LTS-1",
"port-version": 0
},
{
"git-tree": "857da91906824cab4591611fec1de7578cfea29c",
"version-string": "2019-10-07.1-1",
"port-version": 0
},
{
"git-tree": "00f6def9c33c61a51d860ac525994b9055c4ab57",
"version-string": "2019-08-20.1-1",
"port-version": 0
},
{
"git-tree": "cd7027588afbe8ec39fd9025833846517cb49265",
"version-string": "2019-08-20.1",
"port-version": 0
},
{
"git-tree": "0435e8b8e615631392475bc23a8d6ea32c17bfed",
"version-string": "2019-05-16.1",
"port-version": 0
},
{
"git-tree": "0d9589620702fea689795bb37ba86dc9c0cd5166",
"version-string": "2019-05-16",
"port-version": 0
},
{
"git-tree": "78dea6be920279e7f9738682b4fbf9bb275ae7b7",
"version-string": "2019-03-18-1",
"port-version": 0
},
{
"git-tree": "303085f40c9c765cdf66d83875f39ab01194cae9",
"version-string": "2019-03-18",
"port-version": 0
},
{
"git-tree": "9b62efe1b7bc66c9866315ad6112e1dafe78ccf5",
"version-string": "1.1.11-5",
"port-version": 0
},
{
"git-tree": "00cb4786f1169a7c22cadf20f98c792b4437903f",
"version-string": "1.1.11-4",
"port-version": 0
},
{
"git-tree": "40332ca7b7bcffc50305b79d983c68f021ab705d",
"version-string": "1.1.11-3",
"port-version": 0
},
{
"git-tree": "cb4ba8882b3b6ebadbe3956e58e774e3c440be84",
"version-string": "1.1.11-1",
"port-version": 0
},
{
"git-tree": "985ec32a265176922c5946d630e0be2445f9f0ad",
"version-string": "1.1.10-1",
"port-version": 0
},
{
"git-tree": "e00788fa9dd3fccfef5af9b0f1e47f29dcba03df",
"version-string": "1.1.5",
"port-version": 0
},
{
"git-tree": "f3d9eb6e853e637480f3055df8cb5187509bbb34",
"version-string": "1.1.3",
"port-version": 0
},
{
"git-tree": "f0f33cc67f8a097394805954c116428b06b86038",
"version-string": "1.1.2",
"port-version": 0
},
{
"git-tree": "a941f289fae7fcfd16b694d39d328ad6e3511cba",
"version-string": "1.0.0-pre-release-1.0.9",
"port-version": 0
},
{
"git-tree": "fdda2fa0e141399859515231fc360ca8ddf60ccc",
"version-string": "1.1.1",
"port-version": 0
}
]
}