vcpkg/versions/r-
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
..
rabit.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ragel.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rang.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
range-v3-vs2015.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
range-v3.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rapidcheck.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rapidcsv.json [rapidcsv] new port (#16879) 2021-04-07 15:06:20 -07:00
rapidjson.json [rapidjson] Remove usage (#18308) 2021-06-11 09:23:28 -07:00
rapidxml-ns.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rapidxml.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rappture.json [rappture] Update port to use vcpkg.json instead of CONTROL (#20049) 2021-09-08 07:54:48 -07:00
raylib.json [raylib] Fix MinGW build (#18362) 2021-06-15 11:53:40 -07:00
rbdl-orb.json [vcpkg baseline][rbdl-orb/rbdl/ptex] file conflicts, skip rbdl-orb in CI testing (#19453) 2021-08-09 09:07:37 -07:00
rbdl.json [vcpkg baseline][rbdl-orb/rbdl/ptex] file conflicts, skip rbdl-orb in CI testing (#19453) 2021-08-09 09:07:37 -07:00
re2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
readerwriterqueue.json [readerwriterqueue] Update version to 1.0.5 (#19434) 2021-08-09 09:05:05 -07:00
readline-win32.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
readline.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
readosm.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
realsense2.json [vcpkg baseline][realsense2] Fix config issue on osx (#18202) 2021-06-02 21:22:16 -05:00
recast.json [recast] Export unofficial target (#18671) 2021-07-01 09:14:08 -07:00
redis-plus-plus.json [redis-plus-plus] update to 1.2.3 (#18347) 2021-06-11 09:52:35 -07:00
refl-cpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
refprop-headers.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
replxx.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
reproc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rest-rpc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
restbed.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
restc-cpp.json [restc-cpp] make using boost-log an optional feature (#18683) 2021-07-25 17:27:31 -07:00
restclient-cpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
restinio.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
rhash.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
riffcpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ring-span-lite.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rmlui.json [rmlui] Update to 4.2 (#19719) 2021-08-24 15:47:00 -07:00
roaring.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
robin-hood-hashing.json [robin-hood-hashing] Update to 3.11.3 (#18917) 2021-07-22 14:53:23 -07:00
robin-map.json [robin-map] add target and cleanup (#17361) 2021-05-17 23:47:21 -07:00
rocksdb.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rpclib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rply.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rs-core-lib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rsasynccpp.json [rsasynccpp] Add new port (Rstein.AsyncCpp) (#16380) 2021-02-24 16:38:53 -08:00
rsocket.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rtabmap.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
rtaudio.json [rtaudio] update (#19583) 2021-08-18 17:09:24 -07:00
rtlsdr.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rtmidi.json [rtmidi] Fix fatal error C1083: Cannot open include file: jack/jack.h (#19458) 2021-08-09 08:56:48 -07:00
rttr.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rxcpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rxqt.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
rxspencer.json [rxspencer] Update to latest release 3.9.0 and also support dynamic build (#19039) 2021-07-22 13:36:21 -07:00
ryml.json [c4core, ryml] Update to latest version and add features (#19282) 2021-08-02 16:32:40 -07:00
ryu.json [ryu] fixed syntax error in ryuConfig.cmake (#17306) 2021-04-29 15:45:22 -07:00