vcpkg/versions/w-
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
..
wampcc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wangle.json [boost] update to 1.76.0 (#17335) 2021-07-07 12:31:06 -07:00
wavelib.json [wavelib] Update to 2021-08-10 (#19477) 2021-08-30 10:21:45 -07:00
wavpack.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
websocketpp.json [websocketpp] Add features to build without boost (#16675) 2021-03-23 14:42:28 -07:00
wepoll.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
wg21-sg14.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wil.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wildmidi.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wincrypt.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
winlamb.json [winlamb] Add new port (#17590) 2021-05-18 00:17:43 -07:00
winpcap.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
winreg.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
winsock2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wintoast.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
woff2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wordnet.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
workflow.json [workflow] Update version to 0.9.6 (#19280) 2021-08-05 03:04:35 -07:00
wpilib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wren.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wt.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wtl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
wxchartdir.json [wxwidgets] Fix #4756 (#13361) 2021-02-08 18:30:48 -08:00
wxwidgets.json [wxwidgets] make wxUSE_STL an optional triplet feature (#19274) 2021-08-19 08:59:43 -07:00