aboutsummaryrefslogtreecommitdiff
path: root/versions/y-
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2021-09-09 01:24:04 -0700
committerGitHub <noreply@github.com>2021-09-09 01:24:04 -0700
commitb295670e4bab14debe88d92cd5364b21ce26232c (patch)
tree29a1d985c11d3bb45ef6be14d524652c60b08429 /versions/y-
parent7e044226c8a6f43dac7d9e0efd8edbf8ff5ecd04 (diff)
downloadvcpkg-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 'versions/y-')
-rw-r--r--versions/y-/yajl.json5
-rw-r--r--versions/y-/yas.json5
-rw-r--r--versions/y-/yasm.json5
-rw-r--r--versions/y-/yato.json5
-rw-r--r--versions/y-/yoga.json5
5 files changed, 25 insertions, 0 deletions
diff --git a/versions/y-/yajl.json b/versions/y-/yajl.json
index c1761ec58..d51bb4bee 100644
--- a/versions/y-/yajl.json
+++ b/versions/y-/yajl.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "a1f09d6c9effe9aa148fb4c659498c3dc82c61d8",
+ "version-string": "2.1.0",
+ "port-version": 2
+ },
+ {
"git-tree": "b91fee2584125e4f7eb17d16127db70c035164b1",
"version-string": "2.1.0-1",
"port-version": 0
diff --git a/versions/y-/yas.json b/versions/y-/yas.json
index 6baadfd33..18187e169 100644
--- a/versions/y-/yas.json
+++ b/versions/y-/yas.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "65fcc49d8cf563755c7fab9116c57b4de9780d73",
+ "version-string": "7.0.5",
+ "port-version": 1
+ },
+ {
"git-tree": "1976b779d7006fcca2cbe8315c3cd88fd18badd0",
"version-string": "7.0.5",
"port-version": 0
diff --git a/versions/y-/yasm.json b/versions/y-/yasm.json
index 4bf20e559..629197c55 100644
--- a/versions/y-/yasm.json
+++ b/versions/y-/yasm.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "10778f3b98b275cbbc840e6a3c6d96465b2a20a9",
+ "version-string": "1.3.0",
+ "port-version": 1
+ },
+ {
"git-tree": "252cc74ece532436f42df78cfb8aaa3c2735673c",
"version-string": "1.3.0",
"port-version": 0
diff --git a/versions/y-/yato.json b/versions/y-/yato.json
index 057423372..6a7e311f8 100644
--- a/versions/y-/yato.json
+++ b/versions/y-/yato.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "8605c052211c8394b3f3a524ffe071307582a941",
+ "version-string": "1.0",
+ "port-version": 3
+ },
+ {
"git-tree": "4ff4647e49ec1e98b49e1bc9d6b8cf236bce7831",
"version-string": "1.0-2",
"port-version": 0
diff --git a/versions/y-/yoga.json b/versions/y-/yoga.json
index 76e397efe..ced362906 100644
--- a/versions/y-/yoga.json
+++ b/versions/y-/yoga.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "00f17f608ffc20c70786f750aa66035b0f1f0ca4",
+ "version-string": "1.18.0",
+ "port-version": 2
+ },
+ {
"git-tree": "3052ea42237961392cbc1fab6d07160337919cdd",
"version-string": "1.18.0-1",
"port-version": 0