diff options
| author | Billy O'Neal <bion@microsoft.com> | 2021-09-09 01:24:04 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-09 01:24:04 -0700 |
| commit | b295670e4bab14debe88d92cd5364b21ce26232c (patch) | |
| tree | 29a1d985c11d3bb45ef6be14d524652c60b08429 /ports/qt5/CONTROL | |
| parent | 7e044226c8a6f43dac7d9e0efd8edbf8ff5ecd04 (diff) | |
| download | vcpkg-b295670e4bab14debe88d92cd5364b21ce26232c.tar.gz vcpkg-b295670e4bab14debe88d92cd5364b21ce26232c.zip | |
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
```
Diffstat (limited to 'ports/qt5/CONTROL')
| -rw-r--r-- | ports/qt5/CONTROL | 162 |
1 files changed, 0 insertions, 162 deletions
diff --git a/ports/qt5/CONTROL b/ports/qt5/CONTROL deleted file mode 100644 index 085cfa17e..000000000 --- a/ports/qt5/CONTROL +++ /dev/null @@ -1,162 +0,0 @@ -Source: qt5 -Version: 5.15.2 -Homepage: https://www.qt.io/ -Description: Qt5 Application Framework -Build-Depends: qt5-base[core] -Default-Features: essentials - -Feature: essentials -Build-Depends: qt5[core, tools, networkauth, quickcontrols2, multimedia, imageformats, declarative, svg, activeqt] -Description: Build the essential qt modules - -Feature: latest -Build-Depends: qt5-base[core, latest] -Description: Build latest qt version (5.15.2) instead of LTS (Currently latest==LTS) - -Feature: all -Build-Depends: qt5[3d, webchannel, websockets, extras, xmlpatterns, sensors, serialport, speech, svg, tools, virtualkeyboard, networkauth, purchasing, quickcontrols, quickcontrols2, script, scxml, activeqt, charts, datavis3d, declarative, gamepad, graphicaleffects, imageformats, location, multimedia, mqtt, webglplugin, webview, serialbus, translations, doc, remoteobjects, connectivity], qt5[core,webengine,mysqlplugin] (!static), qt5[core,wayland] (!windows) -Description: Install all Qt5 submodules (Warning: Could take a long time and fail...) - -Feature: extras -Build-Depends: qt5-winextras (windows), qt5-macextras (osx), qt5-x11extras (linux), qt5-androidextras (android) -Description: - -Feature: 3d -Build-Depends: qt5-3d -Description: - -Feature: webchannel -Build-Depends: qt5-webchannel -Description: - -Feature: websockets -Build-Depends: qt5-websockets -Description: - -Feature: xmlpatterns -Build-Depends: qt5-xmlpatterns -Description: (deprecated) - -Feature: sensors -Build-Depends: qt5-sensors -Description: - -Feature: serialport -Build-Depends: qt5-serialport -Description: - -Feature: speech -Build-Depends: qt5-speech -Description: - -Feature: svg -Build-Depends: qt5-svg -Description: - -Feature: tools -Build-Depends: qt5-tools -Description: - -Feature: virtualkeyboard -Build-Depends: qt5-virtualkeyboard -Description: - -Feature: networkauth -Build-Depends: qt5-networkauth -Description: - -Feature: purchasing -Build-Depends: qt5-purchasing -Description: - -Feature: quickcontrols -Build-Depends: qt5-quickcontrols -Description: (deprecated) - -Feature: quickcontrols2 -Build-Depends: qt5-quickcontrols2 -Description: - -Feature: script -Build-Depends: qt5-script -Description: (deprecated) - -Feature: scxml -Build-Depends: qt5-scxml -Description: - -Feature: activeqt -Build-Depends: qt5-activeqt (windows) -Description: Windows Only - -Feature: charts -Build-Depends: qt5-charts -Description: - -Feature: datavis3d -Build-Depends: qt5-datavis3d -Description: - -Feature: declarative -Build-Depends: qt5-declarative -Description: - -Feature: gamepad -Build-Depends: qt5-gamepad -Description: - -Feature: graphicaleffects -Build-Depends: qt5-graphicaleffects -Description: - -Feature: imageformats -Build-Depends: qt5-imageformats -Description: - -Feature: location -Build-Depends: qt5-location -Description: - -Feature: multimedia -Build-Depends: qt5-multimedia -Description: - -Feature: mqtt -Build-Depends: qt5-mqtt -Description: - -Feature: webglplugin -Build-Depends: qt5-webglplugin -Description: - -Feature: webview -Build-Depends: qt5-webview -Description: - -Feature: wayland -Build-Depends: qt5-wayland -Description: - -Feature: webengine -Build-Depends: qt5-webengine -Description: - -Feature: serialbus -Build-Depends: qt5-serialbus -Description: - -Feature: translations -Build-Depends: qt5-translations -Description: - -Feature: doc -Build-Depends: qt5-doc -Description: - -Feature: remoteobjects -Build-Depends: qt5-remoteobjects -Description: - -Feature: connectivity -Build-Depends: qt5-connectivity -Description: |
