vcpkg/versions/k-
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
..
kangaru.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
kcp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
kd-soap.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
kealib.json [kealib] Update, revise features (#19118) 2021-09-07 11:56:42 -07:00
kenlm.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
keystone.json [keystone] Fix static build with dynamic CRT on Windows (#19491) 2021-08-11 17:18:20 -07:00
kf5archive.json [kf5archive] fix cmake.in to allow consumption by static builds (#19194) 2021-09-01 11:19:07 -07:00
kf5attica.json [kf5attica] new port (#19446) 2021-08-09 09:00:57 -07:00
kf5auth.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5codecs.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5completion.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5config.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5configwidgets.json [kf5configwidgets] new port (#16562) 2021-08-31 12:40:34 -07:00
kf5coreaddons.json [kf5coreaddons] fix Windows static builds & CMake Config (#19439) 2021-09-01 11:29:13 -07:00
kf5crash.json [kf5crash] fix cmake.in to allow consumption by static builds (#19179) 2021-09-03 16:41:20 -07:00
kf5dbusaddons.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5globalaccel.json [kf5globalaccel] new port (#19757) 2021-09-03 17:17:46 -07:00
kf5guiaddons.json [kf5guiaddons] fix Wayland scanner not being found by transitive deps; fix static builds (#19203) 2021-08-30 10:04:04 -07:00
kf5holidays.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5i18n.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5itemmodels.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5itemviews.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5jobwidgets.json [kf5jobwidgets] new port (#19200) 2021-08-02 16:50:31 -07:00
kf5plotting.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5solid.json [kf5solid] Fix CMake config; some extra fixes (#19810) 2021-09-03 22:20:10 -07:00
kf5sonnet.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5syntaxhighlighting.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5wallet.json [kf5wallet] new port (#19450) 2021-08-30 10:23:23 -07:00
kf5widgetsaddons.json [vcpkg-cmake] Fix docs and usage of option MAYBE_UNUSED_VARIABLES (#19245) 2021-08-03 10:42:34 -07:00
kf5windowsystem.json [kf5windowsystem] fix cmake.in for static usage; extra fixes (#19440) 2021-08-19 15:49:06 -07:00
kfr.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
kinectsdk1.json [kinectsdk1] Update hash (#15856) 2021-01-26 15:09:03 -08:00
kinectsdk2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
kissfft.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
klein.json [klein] create a new port (#18279) 2021-07-06 10:29:48 -07:00
knet.json [knet]Update to v1.0.2 (#17170) 2021-04-12 11:22:48 -07:00
krabsetw.json [krabsetw] Update krabsetw to 4.1.18 (#16576) 2021-03-10 12:30:00 -06:00
ktx.json [ktx] update to 4.0.0 release (#18644) 2021-09-03 16:31:10 -07:00
kubazip.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
kuku.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
kvasir-mpl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
kwsys.json [KWSys] add new port (#19712) 2021-08-24 15:46:24 -07:00