vcpkg/versions/h-
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
..
h3.json [h3/jaeger-client-cpp] Update to the latest version (#20008) 2021-09-08 08:00:54 -07:00
h5py-lzf.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
halide.json [halide] Fix several issues with the Halide port after v12 (#18747) 2021-07-01 07:24:48 -07:00
happly.json [happly] add new port (#16788) 2021-03-22 15:34:08 -07:00
harfbuzz.json [harfbuzz] update to 2.9.0 (#19817) 2021-09-07 21:04:22 -07:00
hayai.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
hazelcast-cpp-client.json [hazelcast-cpp-client] update to v4.2.0 (#19853) 2021-09-03 17:05:18 -07:00
hdf5.json [hdf5] Fix linking order in pc file (#18825) 2021-07-06 13:34:41 -07:00
healpix.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
hedley.json [Hedley] Update to v15 (#17675) 2021-05-07 14:10:16 -07:00
hexl.json [hexl] Update version to 1.2.1 (#19468) 2021-09-03 00:00:29 -07:00
hffix.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
hfsm2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
hidapi.json [hidapi] fix mac build (#17610) 2021-05-01 09:53:06 -07:00
highfive.json [highfive] Update to v2.3 (#17990) 2021-06-09 15:26:03 -07:00
hiredis.json [hiredis] Fix include path (#16512) 2021-03-10 14:01:27 -06:00
hpx.json Adapting for HPX V1.7.1 (#19585) 2021-08-18 17:07:51 -07:00
http-parser.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
hungarian.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
hunspell.json [vcpkg baseline][hunspell] Fix usage when building static (#19323) 2021-08-04 20:05:18 -07:00
hwloc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
hyperscan.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
hypodermic.json [hypodermic] Add new port - Hypodermic v2.5.2 (#17208) (#17208) 2021-04-12 10:55:46 -07:00
hypre.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00