Commit Graph

5 Commits

Author SHA1 Message Date
Cheney Wang
0d1150cbd2
[vcpkg baseline][fastrtps] Use more precise version comparison (#32257) 2023-06-27 12:46:22 -07:00
MonicaLiu
809266d51a
[fastrtps] Replace xtime with _timespec64 for fixing error C2065 (#30823)
* fix xtime*

* update version

* update patch

* update version

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
2023-04-13 21:48:43 -07:00
Osyotr
d0521dadf6
[fastrtps] Update to 2.4.2, fix tool path and x64-linux-dynamic build (#25666)
Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
2022-07-11 16:08:31 -07:00
chausner
b312224c7b
[fastrtps] Update to 2.4.0 (#20645)
* Update fastrtps to 2.4.0

* Update CI baseline

* Fix installation of fast-discovery-server.exe tool

* Update git-tree hash

* Another fix

* Update git-tree hash

* Use vcpkg_replace_string

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

* Fix indentation

* Update git-tree hash

* Remove double quotes

* update version

* Disable symlinks

* Update git-tree hash

Co-authored-by: chausner <chausner@users.noreply.github.com>
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
Co-authored-by: Jonliu1993 <13720414433@163.com>
2021-10-13 14:39:39 -07: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