vcpkg/versions/g-
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
..
g2o.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
g3log.json [g3log] Add supports (#16872) 2021-03-29 09:39:29 -07:00
gainput.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gamedev-framework.json [gamedev-framework] Update to 0.20.0 (#17445) 2021-04-28 16:37:44 -07:00
gamenetworkingsockets.json [gamenetworkingsockets] update to 1.3.0 (#18313) 2021-06-11 09:25:48 -07:00
gamma.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gasol.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gaussianlib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gcem.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gdal.json Fix target_link_libraries on repeated inclusion of wrappers (#19120) 2021-09-02 13:21:52 -07:00
gdcm2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gdcm.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gdk-pixbuf.json [vcpkg baseline][gdk-pixbuf] Fix build error on windows (#17528) 2021-04-28 12:06:01 -07:00
genann.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
geogram.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
geographiclib.json [geographiclib] Update to version 1.52 (#18694) 2021-07-01 07:35:58 -07:00
geos.json [geos,librttopo] Fix linkage and other quirks (#19492) 2021-09-02 17:54:14 -07:00
geotrans.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
getdns.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
getopt-win32.json [getopt-win32] fix static builds (#17942) 2021-05-21 00:50:11 -07:00
getopt.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gettext.json [gettext] Add "autopoint" tool to gettext[core] (#17317) 2021-08-27 14:24:56 -07:00
gettimeofday.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gflags.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
ghc-filesystem.json [ghc-filesystem] Fix port/package name discrepancy (#17589) 2021-05-03 10:52:53 -07:00
gherkin-c.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
giflib.json [giflib] Update to 5.2.1 (#18836) 2021-07-23 09:02:46 -07:00
ginkgo.json [ginkgo] Update to 1.4.0 (#19731) 2021-08-26 09:34:31 -07:00
gl2ps.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gl3w.json Download khrplatform.h with vcpkg instead of gl3w_gen.py so that our downloader settings are used (#18858) 2021-07-07 18:24:13 -07:00
glad.json [glad] fix features (#17966) 2021-05-18 15:24:02 -07:00
glbinding.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
glew.json [glew/openvdb/xtensor-io] Update to latest release version (#20022) 2021-09-08 07:56:56 -07:00
glfw3.json [glfw3] update to 3.3.4 (#17910) 2021-05-18 00:42:12 -07:00
gli.json [gli] upgrade the gli to latest (#18715) 2021-07-08 10:51:05 -07:00
glib.json [glib up to gtk] update and make it work with meson (#13100) 2021-04-26 10:28:21 -07:00
glibmm.json [glib up to gtk] update and make it work with meson (#13100) 2021-04-26 10:28:21 -07:00
glm.json [glm] Add namespace to export target (#16429) 2021-03-01 16:28:05 -08:00
globjects.json [glm] Add namespace to export target (#16429) 2021-03-01 16:28:05 -08:00
glog.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gloo.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
glslang.json [libmediainfo/glslang] Update to the latest version (#19917) 2021-09-07 21:06:30 -07:00
glui.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gmime.json [glib up to gtk] update and make it work with meson (#13100) 2021-04-26 10:28:21 -07:00
gmmlib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gmp.json [yasm-tool] Migrate to Host Dependencies (#16478) 2021-05-21 11:56:32 -07:00
google-cloud-cpp-common.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
google-cloud-cpp-spanner.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
google-cloud-cpp.json [google-cloud-cpp] update to latest release (v1.31.1) (#19957) 2021-09-07 21:06:57 -07:00
googleapis.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gperf.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gperftools.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gpgme.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gppanel.json [wxwidgets] Fix #4756 (#13361) 2021-02-08 18:30:48 -08:00
graphene.json [glib up to gtk] update and make it work with meson (#13100) 2021-04-26 10:28:21 -07:00
graphicsmagick.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
graphite2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
graphqlparser.json Update to Ubuntu 20.04. (#18892) 2021-07-14 12:46:05 -07:00
greatest.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
grpc.json [grpc] fix generated pkg-config file (#19174) 2021-07-27 15:29:44 -07:00
grppi.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gsl-lite.json [gsl-lite] Update to 0.38.1 (#17444) 2021-04-23 10:31:22 -07:00
gsl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gsoap.json [vcpkg baseline][gsoap] Update to 2.8.112 (#16837) 2021-03-25 09:12:33 -07:00
gstreamer.json [gstreamer] create a new port (#17394) 2021-06-24 13:57:45 -07:00
gtest.json [gtest] Update to 1.11.0 (#18509) 2021-06-21 13:44:04 -07:00
gtk.json [gtk] update to 4.3.0 (#17670) 2021-05-07 14:19:42 -07:00
gtkmm.json [gtkmm] Update to 4.0.1 (#17669) 2021-05-06 13:31:48 -07:00
gts.json [glib up to gtk] update and make it work with meson (#13100) 2021-04-26 10:28:21 -07:00
guetzli.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gumbo.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
gzip-hpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00