vcpkg/versions/n-
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
..
nameof.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nana.json [nana]add MinGW subsystem support for nana (#18911) 2021-07-22 14:54:47 -07:00
nano-signal-slot.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nanobench.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nanodbc.json [macos ci] update 2021-07-27 (#19207) 2021-08-04 13:27:40 -07:00
nanoflann.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nanogui.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nanomsg.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nanopb.json [nanopb] update to 0.4.5 and add generator (#18241) 2021-06-22 18:24:13 -07:00
nanoprintf.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nanorange.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nanort.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nanovg.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nativefiledialog.json Fix nativefiledialog port using build time include dir (#18923) 2021-07-16 11:57:20 -07:00
nccl.json [nccl] Remove NCCL auto-download due to licensing issues (#17431) 2021-05-06 14:19:52 -07:00
ncurses.json [vcpkg baseline][ncurses] Fix gnu download link (#18579) 2021-06-24 13:09:12 -07:00
neargye-semver.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ned14-internal-quickcpplib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
netcdf-c.json [netcdf-c] Fix pc files; use features (#18120) 2021-06-28 17:58:35 -07:00
netcdf-cxx4.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nethost.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nettle.json [Nettle] add cflags to build tools (#17421) 2021-04-28 17:35:51 -07:00
networkdirect-sdk.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nghttp2.json [nghttp2] Update and fixes (#19163) 2021-07-28 12:25:26 -07:00
ngspice.json [ngspice] Update to release 35 (#19542) 2021-08-30 18:33:17 -07:00
nifticlib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nlohmann-fifo-map.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nlohmann-json.json [nlohmann-json] update to 3.10.2 (#19690) 2021-09-02 16:05:01 -07:00
nlopt.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
nmap.json [rollup:2021-07-06] Rollup PR (#18838) 2021-07-14 12:45:18 -07:00
nmslib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nng.json [nng] Update to v1.4.0 (#16120) 2021-02-08 13:34:35 -08:00
nngpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nnpack.json [cpuinfo,fbgemm,nnpack] update to latest source version and rename targets (#17063) 2021-05-05 13:37:53 -07:00
nonius.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nowide.json [vcpkg baseline] [nowide] update to 11.1.2 (#17209) 2021-04-12 09:56:17 -07:00
nrf-ble-driver.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nsync.json [nsync] create a new port (#15714) 2021-01-27 14:28:14 -08:00
nt-wrapper.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
nuklear.json [nuklear] Export unofficial target, add features (#18881) 2021-07-16 12:00:42 -07:00
numactl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
numcpp.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
nuspell.json [nuspell] Update to version 5.0.0 (#18590) 2021-06-24 13:07:09 -07:00
nvtt.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00