vcpkg/versions/s-
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
..
safeint.json [safeint] Update to 3.0.26 version (#18176) 2021-06-02 15:37:23 -05:00
sail.json [sail] Update to 0.9.0-pre15 (#19724) 2021-08-24 14:49:58 -07:00
sais.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sajson.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sassc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
scintilla.json [scintilla] update to 4.4.6 (#16508) 2021-03-10 13:57:51 -06:00
sciplot.json [sciplot] Add new port (#15913) 2021-04-01 10:44:04 -07:00
sciter.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
scnlib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
scylla-wrapper.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sdformat6.json [ci] Update macOS to 11 (#17376) 2021-04-29 07:39:04 -07:00
sdformat9.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sdformat10.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sdl1-net.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sdl1.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sdl2-gfx.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sdl2-image.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sdl2-mixer.json [sdl2-mixer] Add fluidsynth feature (#18826) 2021-07-06 13:38:46 -07:00
sdl2-net.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sdl2-ttf.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sdl2.json [sdl2] Update to 2.0.16 (#19509) 2021-08-18 17:19:15 -07:00
sdl2pp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
seal.json [seal] Fixed cannot find SEAL. (#18596) 2021-07-01 08:41:40 -07:00
secp256k1.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
selene.json [macos ci] update 2021-07-27 (#19207) 2021-08-04 13:27:40 -07:00
sentencepiece.json [sentencepiece] v0.1.95 (#19858) 2021-09-05 09:49:17 -07:00
sentry-native.json [sentry-native] Update port to use new vcpkg cmake scripts (#19839) 2021-09-03 17:37:59 -07:00
septag-sx.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
seqan.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
serd.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
sf2cute.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sfgui.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sfml.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
sfsexp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
shaderc.json [shaderc] Add fix for installing shaderc_util (#18979) 2021-07-23 09:04:43 -07:00
shaderwriter.json [shaderwriter] Update to version 1.1.0 (#17347) 2021-04-29 08:22:26 -07:00
shapelib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
shiva-sfml.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
shiva.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
shogun.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
signalrclient.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sigslot.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
simage.json [vcpkg baseline][simage] Update to 1.8.1 (#18645) 2021-07-01 07:14:24 -07:00
simde.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
simdjson.json [simdjson] Update to v1.0.0 (#20052) 2021-09-08 08:02:07 -07:00
simdutf.json [simdutf] Disable benchmarks and tests. (#19987) 2021-09-03 22:16:43 -07:00
simple-fft.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
simpleini.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
skia.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
skyr-url.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sleef.json [sleef] create a new port (#18075) 2021-06-29 09:13:44 -07:00
sleepy-discord.json [sleepy-discord] Add new port (#17604) 2021-07-07 15:06:54 -07:00
slikenet.json [SLikeNet] Update and fix building with x64-mingw-static (#18358) 2021-07-22 22:15:49 -07:00
sltbench.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
smpeg2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
snappy.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sndfile.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
snowhouse.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
so5extra.json [so5extra] Update to 1.4.1.1 (#20004) 2021-09-08 07:51:54 -07:00
sobjectizer.json [sobjectizer] Update to 5.7.2.5 (#17936) 2021-05-18 00:43:44 -07:00
soci.json [soci] Re-fix feature mysql (#16369) 2021-04-09 10:39:04 -07:00
socket-io-client.json [socket-io-client]fix socket-io-client use (#18768) 2021-07-07 09:26:53 -07:00
sockpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
soem.json Update to Ubuntu 20.04. (#18892) 2021-07-14 12:46:05 -07:00
soil2.json [soil2] Update version (#18453) 2021-07-22 22:13:18 -07:00
soil.json [soil] Update repository (#17012) 2021-04-29 13:56:26 -07:00
sokol.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sol2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
solid3.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sophus.json Update to Ubuntu 20.04. (#18892) 2021-07-14 12:46:05 -07:00
soqt.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sord.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
soundtouch.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
soxr.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spaceland.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
span-lite.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
sparsehash.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sparsepp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spatialite-tools.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spdk-dpdk.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spdk-ipsec.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spdk-isal.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spdk.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spdlog.json [spdlog] Update to 1.9.0 (#18512) 2021-07-22 22:08:12 -07:00
spectra.json [uvatlas, spectra] ports updated (#18404) 2021-06-21 14:20:45 -07:00
speex.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
speexdsp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spirit-po.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spirv-cross.json [spirv-cross] small cleanup (#17367) 2021-04-23 13:28:31 -07:00
spirv-headers.json [spirv-cross,spirv-headers,spirv-tools] 2021-01-15 update (#15831) 2021-04-19 17:09:40 -07:00
spirv-tools.json [spirv-tools] Update to v2021.1 (#17642) 2021-05-21 01:18:58 -07:00
spix.json [spix] Add new port (#19351) 2021-08-30 10:20:48 -07:00
sprout.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
spscqueue.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sqlcipher.json [sqlcipher] update to 4.4.3 (#17500) (#17501) 2021-04-28 13:26:02 -07:00
sqlite3.json [sqlite3] Update to 3.35.5 (#18374) 2021-06-11 10:00:19 -07:00
sqlite-modern-cpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sqlite-orm.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sqlitecpp.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
sqlpp11-connector-mysql.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sqlpp11-connector-sqlite3.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sqlpp11.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
sratom.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
srpc.json [srpc] add port of sogou/srpc (#16295) 2021-08-27 12:50:41 -07:00
starlink-ast.json [vcpkg baseline][vcpkg_configure_make] Pass make tool to vcpkg_build_make (#19361) 2021-08-07 07:48:44 -07:00
status-code.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
status-value-lite.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
stb.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
stlab.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
stormlib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
strict-variant.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
string-theory.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
string-view-lite.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
strtk.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
stx.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
stxxl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
suitesparse.json [ceres] Mark all dependencies REQUIRED (#15802) 2021-01-22 12:25:40 -08:00
sundials.json [sundials] fix cmake targets to link bin/*.dll (#18178) 2021-06-03 12:57:42 -07:00
superlu.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
symengine.json [boost] update to 1.76.0 (#17335) 2021-07-07 12:31:06 -07:00
systemc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
szip.json [szip, hdf5] Fix mingw import lib names, control linkage (#17941) 2021-06-09 15:17:07 -07:00