Commit Graph

14 Commits

Author SHA1 Message Date
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
Billy O'Neal
f7b9fc0b3c
[vcpkg, azure-macro-utils-c] Fix SHA and add FILE_DISAMBIGUATOR for vcpkg_from_github (#14343) 2020-11-05 17:25:46 -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
Tye Tinsley
05c7e2c7de
Update C port files (#12013) 2020-06-18 15:23:54 -07:00
Ewerton Scaboro da Silva
f6023255d1 Azure-IoT-Sdk for C LTS release 2020-02-04 (lts_02_2020) 2020-02-04 15:03:19 -08:00
ewertons
7aebb48108
Azure-IoT-Sdk for C release 2020-01-22 (#9805)
* Azure-IoT-Sdk for C release 2020-01-22

* [azure-c-shared-utility] Patch conditionals in azure_c_shared_utilityFunctions.cmake

Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
2020-01-31 11:42:32 -08:00
ewertons
837fcab0ef [azure-iot-sdk-c] Update macro-utils and umock-c to differentiate master and public-preview installations (#9117)
* [azure-iot-sdk-c] Update macro-utils and umock-c to differentiate master and public-preview installations

* [azure-c-shared-utility]Terminate the build process when building uwp.
2019-12-10 11:11:46 -08:00
ewertons
c258d0947d Revert "[azure] Update azure-iot-sdk-c for 07/2019 LTS refresh (#8686)" (#8731)
This reverts commit bc11674db1.

The LTS release broke the regular port of azure-iot-sdk-c.
This will be fixed and re-published.
2019-10-24 15:47:53 -07:00
ewertons
bc11674db1 [azure] Update azure-iot-sdk-c for 07/2019 LTS refresh (#8686) 2019-10-21 15:18:33 -07:00
Ewerton Scaboro da Silva
3a619c1af8 [azure] Update azure-iot-sdk-c for release of 2019-10-07 2019-10-09 09:01:16 -07:00
ewertons
bad7798afe [azure-iot] vcpkg update for master/public-preview release (#7791) 2019-08-20 14:54:36 -07:00
ewertons
3e1b8afb18 [azure] Update azure-iot-sdk-c for public-preview release of 2019-05-16 (#6804) 2019-06-06 23:01:40 -07:00
ewertons
4f6d1278c5 [azure] Update azure-iot-sdk-c for master release of 2019-05-16 (#6615) 2019-05-24 15:16:28 -07:00
ewertons
e290fc43fa [azure] Update vcpkgs (add new port dependencies) (#6511)
* [azure] Update vcpkgs (add new port dependencies)

* [azure-iot-sdk-c] Bump CONTROL versions and normalize tabs/spaces

* [azure] ACR of Update vcpkgs (add new port dependencies)
2019-05-20 10:27:45 -07:00