vcpkg/versions/o-
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
..
oatpp-consul.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp-curl.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp-libressl.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp-mbedtls.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp-mongo.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp-openssl.json [oatpp-openssl] new port (#19265) 2021-09-01 11:48:01 -07:00
oatpp-postgresql.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp-sqlite.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp-swagger.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp-websocket.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp-zlib.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
oatpp.json [oatpp] update to 1.2.5 (#17601) 2021-05-18 00:41:30 -07:00
observer-ptr-lite.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ocilib.json [ocilib] fix wrong solution filename (#16625) 2021-03-16 11:47:27 -07:00
octomap.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ode.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
offscale-libetcd-cpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ogdf.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ogre-next.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ogre.json [ogre] Do not use strict mode by default in ogre for backward compatibility (#15789) 2021-01-22 12:09:58 -08:00
ois.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
ompl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
omplapp.json [ompl] Fix linking using ${OMPL_LIBRARIES} (#18908) 2021-07-22 15:00:49 -07:00
onednn.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
oniguruma.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
onnx.json [onnx] create a new port (#18073) 2021-08-27 14:20:15 -07:00
onnxruntime-gpu.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
open62541.json [open6254] Enable uwp support (#18390) 2021-06-15 10:25:49 -07:00
openal-soft.json [openal-soft] enable coreaudio backend for ios (#19464) 2021-08-11 19:42:28 -07:00
openblas.json [openblas] update to 0.3.15 version and add dynamic arch feature (#15238) 2021-07-25 17:26:55 -07:00
opencascade.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
opencc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
opencensus-cpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
opencl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
opencolorio-tools.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
opencolorio.json [OpenColorIO] Fix OpenColorIO v2.0.1 can't be find_package (#19725) 2021-08-26 10:10:12 -07:00
opencsg.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
opencv2.json [ffmpeg/opencv4] Update opencv4 feature dependency and remove ffmpeg feature 'postproc' from default feature (#19358) 2021-08-13 08:46:11 -07:00
opencv3.json [OpenCV] fix protobuf references (#19770) 2021-09-03 22:25:12 -07:00
opencv4.json [OpenCV] fix protobuf references (#19770) 2021-09-03 22:25:12 -07:00
opencv.json [OpenCV] update to v4.5.3 and to v3.4.15 (#18827) 2021-08-13 13:57:28 -07:00
opendnp3.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
openexr.json [openexr] fixup pkgconfig (#18123) 2021-06-11 08:46:46 -07:00
opengl-registry.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
opengl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openh264.json [openh264] fixup the installed pkgconfig files (#18077) 2021-05-24 11:10:06 -07:00
openigtlink.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openimageio.json [openimageio] update version to 2.3.7.2 (#19961) 2021-09-07 21:09:32 -07:00
openjpeg.json [ffmpeg] Add support for dav1d,fontconfig,freetype,fribidi,ilbc,modplug,opengl,openjpeg,libssh,tensorflow,tesseract,webp,libxml2 dependencies. (#15787) 2021-04-07 10:06:55 -07:00
openmama.json [openmama] Modify the output path of the common header file (#16725) 2021-04-12 09:59:28 -07:00
openmesh.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openmpi.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openmvg.json [FLANN] Allow to be build as shared lib (#16724) 2021-05-26 14:48:21 -07:00
openmvs.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openni2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openscap.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openssl-unix.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openssl-uwp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openssl-windows.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openssl.json [openssl] Support static builds on UWP (#19636) 2021-09-03 00:01:15 -07:00
opensubdiv.json Update to Ubuntu 20.04. (#18892) 2021-07-14 12:46:05 -07:00
opentelemetry-cpp.json [opentelemetry-cpp] New port (#19536) 2021-08-18 17:14:57 -07:00
opentracing.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
openvdb.json [glew/openvdb/xtensor-io] Update to latest release version (#20022) 2021-09-08 07:56:56 -07:00
openvpn3.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openvr.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
openxr-loader.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
optional-bare.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
optional-lite.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
opus.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
opusfile.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
orc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
orocos-kdl.json [orocos-kdl] Export include path to targets (#18203) 2021-06-09 17:07:01 -07:00
osg-qt.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
osg.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
osgearth.json [osgearth] Fix undefined references due to openjp2 and xml2 (#17993) 2021-06-09 15:27:43 -07:00
osi.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
otl.json [vcpkg baseline][otl] Update to 40463 (#18383) 2021-06-11 09:58:36 -07:00
outcome.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00