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
..
2021-09-02 17:57:20 -07:00
2021-08-27 17:02:02 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-07-22 21:58:32 -07:00
2021-09-09 01:24:04 -07:00
2021-04-26 10:28:21 -07:00
2021-09-09 01:24:04 -07:00
2021-01-21 09:53:22 -08:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-01-21 09:53:22 -08:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-02 13:21:52 -07:00
2021-06-18 10:56:56 -07:00
2021-09-09 01:24:04 -07:00
2021-07-22 14:52:56 -07:00
2021-05-20 17:59:15 -07:00
2021-03-17 15:04:33 -07:00
2021-09-09 01:24:04 -07:00
2021-09-08 11:56:06 -07:00
2021-03-29 09:25:14 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-06-21 14:18:40 -07:00
2021-09-08 07:45:37 -07:00
2021-04-26 10:28:21 -07:00
2021-09-09 01:24:04 -07:00
2021-09-02 18:03:41 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-02-03 11:40:55 -08:00
2021-09-09 01:24:04 -07:00
2021-07-16 00:52:38 -07:00
2021-02-16 11:15:06 -08:00
2021-08-26 10:09:08 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-08-30 18:19:44 -07:00
2021-05-06 17:41:20 -07:00
2021-09-09 01:24:04 -07:00
2021-09-08 07:55:21 -07:00
2021-09-09 01:24:04 -07:00
2021-02-08 18:18:42 -08:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-08 07:55:21 -07:00
2021-05-24 11:57:02 -07:00
2021-07-22 13:37:49 -07:00
2021-06-18 10:57:11 -07:00
2021-04-26 10:28:21 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-03-25 12:16:08 -07:00
2021-09-07 21:48:24 -07:00
2021-09-09 01:24:04 -07:00
2021-05-21 00:31:48 -07:00
2021-09-08 07:45:37 -07:00
2021-04-26 10:27:45 -07:00
2021-09-09 01:24:04 -07:00
2021-09-02 13:21:52 -07:00
2021-08-30 10:25:56 -07:00
2021-09-09 01:24:04 -07:00
2021-07-26 11:02:24 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-08-05 03:09:16 -07:00
2021-09-03 17:37:20 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-03 17:37:20 -07:00
2021-08-30 18:35:02 -07:00
2021-09-09 01:24:04 -07:00
2021-07-22 15:48:47 -07:00
2021-09-09 01:24:04 -07:00
2021-05-28 10:09:56 -07:00
2021-07-22 16:19:26 -07:00
2021-09-09 01:24:04 -07:00
2021-09-07 21:06:30 -07:00
2021-09-09 01:24:04 -07:00
2021-05-18 00:16:53 -07:00
2021-09-09 01:24:04 -07:00
2021-01-21 09:53:22 -08:00
2021-09-09 01:24:04 -07:00
2021-07-22 15:35:12 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-08-30 10:28:07 -07:00
2021-09-03 17:37:20 -07:00
2021-03-10 14:28:59 -06:00
2021-04-26 10:28:21 -07:00
2021-09-09 01:24:04 -07:00
2021-03-01 12:05:38 -08:00
2021-09-09 01:24:04 -07:00
2021-08-04 13:27:40 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-08-04 13:27:40 -07:00
2021-06-24 13:14:37 -07:00
2021-06-30 13:06:48 -07:00
2021-01-21 09:53:22 -08:00
2021-04-30 11:03:26 -07:00
2021-09-03 14:14:39 -07:00
2021-01-21 09:53:22 -08:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-08 07:45:37 -07:00
2021-09-09 01:24:04 -07:00
2021-04-26 10:28:21 -07:00
2021-08-30 10:26:19 -07:00
2021-06-09 15:47:58 -07:00
2021-09-09 01:24:04 -07:00
2021-07-22 13:41:26 -07:00
2021-08-10 00:59:47 -07:00
2021-01-21 09:53:22 -08:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-07 21:40:10 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-07-01 07:29:16 -07:00
2021-08-09 08:56:04 -07:00
2021-09-07 21:40:10 -07:00
2021-02-20 21:14:29 -08:00
2021-09-02 17:54:14 -07:00
2021-09-07 21:49:35 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-01 11:50:01 -07:00
2021-04-26 10:28:21 -07:00
2021-07-26 10:59:27 -07:00
2021-06-24 13:11:50 -07:00
2021-02-01 19:24:40 -08:00
2021-08-05 03:07:52 -07:00
2021-05-24 15:14:14 -07:00
2021-04-02 13:25:21 -07:00
2021-05-26 15:02:26 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-03-10 14:02:20 -06:00
2021-05-26 13:29:52 -07:00
2021-05-18 00:53:11 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-06-11 09:01:09 -07:00
2021-09-09 01:24:04 -07:00
2021-04-26 10:27:45 -07:00
2021-09-09 01:24:04 -07:00
2021-04-30 11:25:01 -07:00
2021-09-09 01:24:04 -07:00
2021-08-30 09:51:19 -07:00
2021-08-04 13:27:40 -07:00
2021-07-16 12:53:49 -07:00
2021-09-09 01:24:04 -07:00
2021-03-23 14:41:32 -07:00
2021-09-09 01:24:04 -07:00
2021-07-22 21:44:41 -07:00
2021-09-07 21:40:10 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-01-21 09:53:22 -08:00
2021-09-02 13:11:17 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-08 08:02:56 -07:00
2021-09-09 01:24:04 -07:00
2021-09-03 14:14:39 -07:00
2021-09-02 13:21:52 -07:00
2021-09-09 01:24:04 -07:00
2021-04-26 10:28:21 -07:00
2021-09-09 01:24:04 -07:00
2021-07-15 17:19:56 -07:00
2021-09-09 01:24:04 -07:00
2021-04-29 16:14:01 -07:00
2021-09-09 01:24:04 -07:00
2021-04-29 15:54:14 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-01-21 09:53:22 -08:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-08-27 17:05:04 -07:00
2021-09-09 01:24:04 -07:00
2021-04-19 17:36:19 -07:00
2021-03-29 10:11:07 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-08-18 17:18:05 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-06-09 15:18:49 -07:00
2021-09-09 01:24:04 -07:00
2021-09-08 07:45:37 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-09-09 01:24:04 -07:00
2021-01-21 09:53:22 -08:00