vcpkg/versions/m-
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
..
magic-enum.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
magic-get.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
magnum-extras.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
magnum-integration.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
magnum-plugins.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
magnum.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mailio.json [mailio] does not support uwp (#16789) 2021-03-19 13:15:15 -07:00
mapbox-geojson-cpp.json [mapbox-geometry,mapbox-polylabel,geojson-vt-cpp,geojson-cpp] new ports (#16838) 2021-04-01 10:04:08 -07:00
mapbox-geojson-vt-cpp.json [mapbox-geometry,mapbox-polylabel,geojson-vt-cpp,geojson-cpp] new ports (#16838) 2021-04-01 10:04:08 -07:00
mapbox-geometry.json [mapbox-geometry,mapbox-polylabel,geojson-vt-cpp,geojson-cpp] new ports (#16838) 2021-04-01 10:04:08 -07:00
mapbox-polylabel.json [mapbox-geometry,mapbox-polylabel,geojson-vt-cpp,geojson-cpp] new ports (#16838) 2021-04-01 10:04:08 -07:00
mapbox-variant.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mapbox-wagyu.json [mapbox-wagyu] add new port (#18771) 2021-07-06 13:57:41 -07:00
marble.json [vcpkg baseline][marble] Disable dependency KF5 (#17492) 2021-04-28 13:31:52 -07:00
marl.json [marl] update to latest version (#17459) 2021-04-28 14:42:15 -07:00
mathc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mathgl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
matio.json [matio] Use official CMakeLists, add features (#18254) 2021-06-10 16:22:46 -07:00
matplotlib-cpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
matplotplusplus.json [matplotplusplus] Fix usage (#18583) 2021-06-24 13:08:29 -07:00
matroska.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mbedtls.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mcpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mdns.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
mdnsresponder.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mecab.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
memorymodule.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mesa.json [Mesa] update to 21.2.0 (#19612) 2021-08-30 10:28:34 -07:00
meschach.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
meshoptimizer.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
metis.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
metrohash.json [metrohash] support more triplets by excluding 128 CRC source (#16553) 2021-03-19 09:56:01 -07:00
mfl.json [mfl] Add new port (#16345) 2021-04-01 10:39:10 -07:00
mgnlibs.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mhook.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
microsoft-signalr.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mikktspace.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
milerius-sfml-imgui.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mimalloc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
minc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
minhook.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
minifb.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
minimp3.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
minisat-master-keying.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
minitrace.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
miniupnpc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
miniz.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
minizip-ng.json [minizip-ng] made cmake installs relative (#17685) 2021-05-18 15:46:03 -07:00
minizip.json [minizip] Fix usage, fix minizipConfig.cmake (#18472) 2021-06-16 14:39:53 -07:00
mio.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mlpack.json [mlpack] Add feature openmp (#18942) 2021-07-16 12:55:36 -07:00
mman.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mmloader.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
mmx.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mnn.json [flatbuffers] upgrade the flatbuffers to v2.0.0 (#18897) 2021-07-22 15:31:44 -07:00
modp-base64.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mongo-c-driver.json [libbson, mongo-c-driver] Convert to vcpkg.json. (#20039) 2021-09-08 11:56:06 -07:00
mongo-cxx-driver.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mongoose.json [mongoose] update to 7.1 (#16493) 2021-03-10 14:02:54 -06:00
monkeys-audio.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
moos-core.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
moos-essential.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
moos-ui.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
morton-nd.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mosquitto.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
mozjpeg.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mp3lame.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mp-units.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mpark-variant.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mpc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mpfr.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mpg123.json [mpg123] Upgrade to 1.28.0 (#18403) 2021-06-30 13:06:48 -07:00
mpi.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mpir.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
mpmcqueue.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mqtt-cpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ms-angle.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ms-gltf.json [ms-gltf] Update to latest release r1.9.5.4 (#19958) 2021-09-07 21:09:06 -07:00
ms-gsl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ms-quic.json [ms-quic] create a new port (#18225) 2021-07-25 12:48:56 -07:00
msdfgen.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
msgpack11.json Update to Ubuntu 20.04. (#18892) 2021-07-14 12:46:05 -07:00
msgpack.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
msinttypes.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
msix.json [msix] Add DISABLE_PARALLEL_CONFIGURE (#16488) 2021-03-10 14:04:40 -06:00
msmpi.json [msmpi] Update the download hash (#17629) 2021-05-06 13:45:57 -07:00
mstch.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mujs.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
munit.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
muparser.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
murmurhash.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
mygui.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00