vcpkg/versions/j-
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
..
jack2.json [jack2] update to 1.9.19; install pkgconfig file; fix library name (#19270) 2021-08-05 03:23:41 -07:00
jaeger-client-cpp.json [h3/jaeger-client-cpp] Update to the latest version (#20008) 2021-09-08 08:00:54 -07:00
jansson.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
jasper.json [jasper] update to 2.0.33 (#19798) 2021-09-02 18:04:16 -07:00
jbig2dec.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
jbigkit.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
jemalloc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
jinja2cpplight.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
josuttis-jthread.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
jsmn.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
json5-parser.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
json11.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
json-c.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
json-dto.json [json-dto] Update to 0.2.13 (#18710) 2021-07-01 07:30:13 -07:00
json-schema-validator.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
json-spirit.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
jsoncons.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
jsoncpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
jsonnet.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
jwt-cpp.json [jwt-cpp] Fixes SHA512 (#19845) 2021-09-01 11:02:47 -07:00
jxrlib.json [jxrlib] Add usage and fix FindJXR.cmake (#17715) 2021-05-24 17:43:03 -07:00