Commit Graph

12 Commits

Author SHA1 Message Date
Jack·Boos·Yu
1ac3a7f078
[wil] Fix usage (#21151)
* [wil] Fix usage

* version

* Apply suggestions

* version
2021-12-13 11:47:30 -08:00
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
Duncan Horn
7f3e714768
[wil] Update wil to the latest commit (#19343)
* Update WIL port

* Running new command I previously didn't know about
2021-08-05 03:03:51 -07:00
anaaru
f5bfe6dc18
[wil] Updating WIL version to match its nuget package version (#16575)
* [wil] Updating WIL version to match its nuget package version

* Removing port version from CONTROL file

* Revert "Removing port version from CONTROL file"

Reverting because PR tests are failing.

This reverts commit 28ffcba04b.

* Updating baseline.json and w-/wil.json

* update version

* modify portfile.cmake

* update version

Co-authored-by: Anand Arumugam <anand.arumug@gmail.com>
Co-authored-by: Anand Arumugam <anaaru@microsoft.com>
Co-authored-by: Jonliu1993 <13720414433@163.com>
2021-03-10 13:29:45 -06:00
Jack·Boos·Yu
e2cefd749d
[wil] Use internal CMakeLists (#15438)
* [wil] Use internal CMakeLists

* [wil] Fix install headers on Linux
2021-01-05 12:44:06 -08:00
Billy O'Neal
09a647a526
Delete use of vcpkg_test_cmake and vcpkg_common_functions. (#13065) 2020-10-28 14:18:07 -07:00
Duncan Horn
a830527563
[wil] Update to 2020-05-19 (#11506)
* Update commit for WIL

* Update wil port to match the commit used for NuGet package 1.0.190716.2

* Update WIL port

* Update WIL port
2020-05-22 21:59:05 -07:00
Duncan Horn
7c412eb044 Update WIL port (#8948)
* Update commit for WIL

* Update wil port to match the commit used for NuGet package 1.0.190716.2

* Update WIL port
2019-11-19 11:12:30 -08:00
Duncan Horn
45e53e13f6 [wil] match commit used for NuGet package 1.0.190716.2 (#7285) 2019-07-17 23:31:17 -07:00
Robert Schumacher
e5d7cc9160
[wil] Update (#7215) 2019-07-09 11:35:43 -07:00
Duncan Horn
bd53b5dde1 Update commit for WIL (#6847) 2019-06-10 17:24:35 -07:00
Charles Milette
0e1ea7576c [wil] new port (#6353)
* [wil] new port
2019-05-08 12:40:09 -07:00