mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 10:59:00 +08:00
b295670e4b
``` 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 ```
195 lines
4.9 KiB
JSON
195 lines
4.9 KiB
JSON
{
|
|
"versions": [
|
|
{
|
|
"git-tree": "5001f42225c6e566471b02dcffeb45467368514a",
|
|
"version-string": "7.0.3",
|
|
"port-version": 1
|
|
},
|
|
{
|
|
"git-tree": "321d63a1abf3c6c213c8870bb658ee842a70ede7",
|
|
"version-string": "7.0.3",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "f29d3acc8eb434569566d4300239ab584b32a3c5",
|
|
"version-string": "7.0.2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "f78fceaf77115253b6aac710881d0d8f705fead6",
|
|
"version-string": "7.0.1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "fefdf115c09a6996c55262dd9a635647dc7d8440",
|
|
"version-string": "7.0.0",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "8b23f37d4b1c965115ae6fbe79686605997fe659",
|
|
"version-string": "6.5.12",
|
|
"port-version": 1
|
|
},
|
|
{
|
|
"git-tree": "3ec027b385329149d469f4425ece1c448170927b",
|
|
"version-string": "6.5.12",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "9b700b928b55baac62dc2f808ba366fc065ea085",
|
|
"version-string": "6.5.11",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "b46a375bbc0f75a69943381ffdfcd715596a4fae",
|
|
"version-string": "6.5.10",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "012391958fe8d6dae00b0ea5a3bb8ea74f2fba85",
|
|
"version-string": "6.5.9-5",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "31f1639de02c65ddfe0dc41dee23dd2f7efd9c6f",
|
|
"version-string": "6.5.9-4",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "4c5ea2580f2bc59411d4b471f18a4670565e60ef",
|
|
"version-string": "6.5.9-3",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "fffc7828cdb75b3bdaac0c2565f8342f210a1f65",
|
|
"version-string": "6.5.9-2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "6de81bc1ec54191accc6d2d88a804eeff228f085",
|
|
"version-string": "6.5.9-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "5a2c4cff39253124f54b94cae24b3a0b59e42092",
|
|
"version-string": "6.5.9",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "ec3d4336726ef2438b0c6f8995827d60380ce55c",
|
|
"version-string": "6.5.8-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "e32b36ec3da04f9a3e0bc4afc7aa888be3346787",
|
|
"version-string": "6.5.8",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "dc23482187fda6854e6893d9ebf6aa2bded873dc",
|
|
"version-string": "6.5.7-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "08d3e2a110c4bbec49243d1ec0e6a6101a823f84",
|
|
"version-string": "6.5.7",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "a4ea954de4af8ebe3adfadc9dcb5dfcfa82a0b51",
|
|
"version-string": "6.5.6",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "ef0d308766c81587020090166f0c76178ebda2da",
|
|
"version-string": "6.5.5-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "46b028f234eeddb808c0a870bc3002f03745d740",
|
|
"version-string": "6.5.5",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "57b537f14ea8f6257f7cb13633a57d1338c9e7c8",
|
|
"version-string": "6.5.4-3",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "8f66b7308ead7caee78459a54b2e856597e5f36c",
|
|
"version-string": "6.5.4-2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "670773498c9568c9e3607eb9890b630524692136",
|
|
"version-string": "6.5.4-1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "937c1bc48daca299b8569669ffe9b5e56bd01077",
|
|
"version-string": "6.5.4",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "33579fee5a02f1e46b1644a63594cfca3b6b205e",
|
|
"version-string": "6.5.3",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "313520797b6ca7af4651b4e10b28a6a3660e3b66",
|
|
"version-string": "6.5.2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "f953ba30fe110708ac69e32a95b9a070cdb00a27",
|
|
"version-string": "6.5.1",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "cbf8d6ec29760d00f3eb3fb018e2384cf53c5b27",
|
|
"version-string": "6.5.0",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "7267b96c7f7828997a37cda85a3e4356e0314b15",
|
|
"version-string": "6.4.8",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "4c1478889623de771a7382e6a497c2406f781161",
|
|
"version-string": "6.4.7",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "e390406693383b179cb83feb0e6c7ca430233286",
|
|
"version-string": "6.4.6",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "e97361d3b4fe96846a1f2e46b95e62d731192a36",
|
|
"version-string": "6.4.5",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "3eda18a0204a25e9269a69c60f7980e7710eef74",
|
|
"version-string": "6.4.4",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "d4286f1a52e8dfe240663e97d0c70f18597f2515",
|
|
"version-string": "6.4.3",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "ee618e8a429a56b4ae412bd43bab859a8592294f",
|
|
"version-string": "6.4.2",
|
|
"port-version": 0
|
|
},
|
|
{
|
|
"git-tree": "cbfc33d5980b991b984c2877a2c39fbcaca40c6f",
|
|
"version-string": "6.4.0",
|
|
"port-version": 0
|
|
}
|
|
]
|
|
}
|