vcpkg/versions/d-
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
..
d3d12-memory-allocator.json [d3d12-memory-allocator] new port (#18212) 2021-07-16 00:15:17 -07:00
d3dx12.json [d3dx12] update port (#17749) 2021-05-11 00:36:27 -07:00
darknet.json [darknet] fix uselib_track tool installation (#18168) 2021-06-09 15:51:27 -07:00
darts-clone.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dartsim.json Update VMs, CMake to 3.20.1, CUDA to 11.3, and pwsh to 7.1.3 (#17331) 2021-04-26 10:27:45 -07:00
dataframe.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
date.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dav1d.json [dav1d] fixup the installed pkgconfig files (#18078) 2021-05-24 11:10:23 -07:00
daw-header-libraries.json [daw-json-link,daw-header-libraries,daw-utf-range]Update many ports (#19755) 2021-08-30 10:25:07 -07:00
daw-json-link.json [daw-json-link,daw-header-libraries,daw-utf-range]Update many ports (#19755) 2021-08-30 10:25:07 -07:00
daw-utf-range.json [daw-json-link,daw-header-libraries,daw-utf-range]Update many ports (#19755) 2021-08-30 10:25:07 -07:00
dbg-macro.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dbghelp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dbow2.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dbow3.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dcmtk.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
debug-assert.json [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
decimal-for-cpp.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
detours.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
devicenameresolver.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
devil.json [devil] Fix ilut header (#18384) 2021-06-15 10:31:05 -07:00
dimcli.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
directx-headers.json [directx-headers] port updated (#17399) 2021-04-23 11:05:42 -07:00
directxmath.json [dxut, fx11, directxmath] ports updated (#18431) 2021-06-21 14:19:46 -07:00
directxmesh.json [directxtk, directxtk12, directxmesh, directxtex, uvatlas] ports updated for June 2021 releases (#18366) 2021-06-11 10:02:03 -07:00
directxsdk.json direcxtsdk port updated to use MS Downloads (#16317) 2021-02-20 21:20:27 -08:00
directxtex.json [directxtk, directxtk12, directxtex] ports updated for August 2021 release (#19320) 2021-08-26 15:37:42 -07:00
directxtk12.json [directxtk, directxtk12, directxtex] ports updated for August 2021 release (#19320) 2021-08-26 15:37:42 -07:00
directxtk.json [directxtk, directxtk12, directxtex] ports updated for August 2021 release (#19320) 2021-08-26 15:37:42 -07:00
dirent.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
discord-game-sdk.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
discord-rpc.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
discount.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
discreture.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
distorm.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dlfcn-win32.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dlib.json [rollup] Rollup PR 2021-07-16 (#19001) 2021-07-20 10:24:58 -07:00
dmlc.json [rollup] Rollup PR 2021-07-16 (#19001) 2021-07-20 10:24:58 -07:00
docopt.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
doctest.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
double-conversion.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dpdk.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
draco.json [draco] Fix build failure on gcc 11 (#18001) 2021-05-21 00:39:04 -07:00
drlibs.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
drogon.json [trantor] Update to 1.5.1 (#19443) 2021-08-30 19:27:37 -07:00
dtl.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
duckx.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
duilib.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
duktape.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dx.json Bulk convert control files. (#19986) 2021-09-09 01:24:04 -07:00
dxsdk-d3dx.json [dxsdk-d3dx] Add new port (#17175) 2021-04-30 11:19:40 -07:00
dxut.json [dxut, fx11, directxmath] ports updated (#18431) 2021-06-21 14:19:46 -07:00