vcpkg/versions/q-
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
..
qca.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qcustomplot.json [rollup:2021-07-06] Rollup PR (#18838) 2021-07-14 12:45:18 -07:00
qhull.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qnnpack.json [qnnpack] create a new port (#17065) 2021-05-06 17:44:36 -07:00
qpid-proton.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qscintilla.json [qscintilla] Modify macro QSCINTILLA_DLL to 1 in qscintilla header (#17721) 2021-05-18 15:40:50 -07:00
qt-advanced-docking-system.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qt5-3d.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-activeqt.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-androidextras.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-base.json [qt5-base] Download submodules over https instead of http (#19843) 2021-09-03 00:03:13 -07:00
qt5-canvas3d.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-charts.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-connectivity.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-datavis3d.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-declarative.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-doc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-gamepad.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-graphicaleffects.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-imageformats.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-location.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-macextras.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-modularscripts.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-mqtt.json [rollup:2021-07-06] Rollup PR (#18838) 2021-07-14 12:45:18 -07:00
qt5-multimedia.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-networkauth.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-purchasing.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-quickcontrols.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-quickcontrols2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-remoteobjects.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-script.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-scxml.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-sensors.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-serialbus.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-serialport.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-speech.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-svg.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-tools.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-translations.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-virtualkeyboard.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-wayland.json Update to Ubuntu 20.04. (#18892) 2021-07-14 12:46:05 -07:00
qt5-webchannel.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-webengine.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-webglplugin.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-websockets.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-webview.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-winextras.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-x11extras.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5-xmlpatterns.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qt5compat.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qt6betablock.json [Qt6|6.1.0] Add new ports. (#14333) 2021-06-01 11:05:59 -07:00
qtactiveqt.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtbase.json [qtbase] Download submodules over https instead of plain git protocol (#19844) 2021-09-02 13:25:35 -07:00
qtcharts.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtcoap.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtdatavis3d.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtdeclarative.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtdoc.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtimageformats.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtkeychain.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
qtlottie.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtmqtt.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtnetworkauth.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtopcua.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtquick3d.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtquickcontrols2.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtquicktimeline.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtscxml.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtshadertools.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtsvg.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qttools.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qttranslations.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtvirtualkeyboard.json [Qt6] Update to 6.1.2 (#18787) 2021-07-06 13:43:23 -07:00
qtwayland.json Update to Ubuntu 20.04. (#18892) 2021-07-14 12:46:05 -07:00
quadtree.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
quantlib.json [boost] update to 1.76.0 (#17335) 2021-07-07 12:31:06 -07:00
quaternions.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
quazip.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
quickfast.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
quickfix.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
quill.json [quill] Update to 1.6.3 (#19827) 2021-09-03 17:04:00 -07:00
quirc.json [quirc, opencv4] Build fixes from 2021-01-18 build (#15788) 2021-01-26 14:33:06 -08:00
qwt.json [qwt] update to 6.2.0 (#19075) 2021-07-27 16:25:52 -07:00
qwtw.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00