vcpkg/versions/i-
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
..
icu.json [icu] Fix tool path (#19726) 2021-09-07 15:19:28 -07:00
ideviceinstaller.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
idevicerestore.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
if97.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
igloo.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-cmake0.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-cmake2.json [glib up to gtk] update and make it work with meson (#13100) 2021-04-26 10:28:21 -07:00
ignition-common1.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-common3.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-fuel-tools1.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-fuel-tools4.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-math4.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-math6.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-modularscripts.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-msgs1.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-msgs5.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-msgs6.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-plugin1.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-transport4.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-transport8.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ignition-transport9.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
igraph.json [igraph] update to 0.9.4 (#18213) 2021-06-03 12:39:51 -07:00
iir1.json [iir1] Add new port (#16436) 2021-03-29 10:08:29 -07:00
ijg-libjpeg.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
ilmbase.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
imgui-sfml.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
imgui.json [imgui] update to 1.84.2 (#20012) 2021-09-08 07:54:28 -07:00
imguizmo.json [imguizmo] new port (#18991) 2021-07-22 14:05:05 -07:00
immer.json [immer] update port (#19521) 2021-08-18 17:17:34 -07:00
implot.json [implot] Update to 0.11 (#18909) 2021-07-13 12:49:24 -07:00
indicators.json [indicators] update to 2.0 (#16667) 2021-03-15 15:19:09 -07:00
influxdb-cxx.json [Influxdb-cxx] add new port (#16794) 2021-03-24 12:53:27 -07:00
infoware.json [infoware] update to latest commit (#18486) 2021-06-18 11:06:31 -07:00
inih.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
iniparser.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
inja.json [inja] Update to 3.3.0. (#19208) 2021-07-28 13:18:41 -07:00
intel-ipsec.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
intel-mkl.json [intel-mkl] Update description field (#19461) 2021-08-11 17:19:54 -07:00
intelrdfpmathlib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
io2d.json [glib up to gtk] update and make it work with meson (#13100) 2021-04-26 10:28:21 -07:00
irrlicht.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
irrxml.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
isal.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ismrmrd.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
itk.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
itpp.json [macos ci] update 2021-07-27 (#19207) 2021-08-04 13:27:40 -07:00
ixwebsocket.json [ixwebsocket] Update to 11.2.6 (#17999) 2021-05-21 00:39:28 -07:00