Commit Graph

7 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
Phoebe
13590753fe
[inja/kd-soap/fastrtps/graphite2/jsonnet] Update to latest release revision (#13584)
* [inja/kd-soap/fastrtps/graphite2/jsonnet] Update to latest release revision

* Fix license path for fastrtps and remove bin with static build for kd-soap
2020-09-18 17:17:21 -07:00
Jack·Boos·Yu
a59ddd901a
[vcpkg-baseline][manyport] Fix baseline error (#11742)
* [fastrtps] Fix source hash

* [cpp-taskflow] Update source hash

* [eabase] Re-trigger CI test

* Change repo

* [sdformat9] Re-trigger CI test

* update baseline

* update baseline

* [sdformat9] Fix find dependency urdfdom
2020-06-04 12:20:25 -07:00
Phil Christensen
3b25ec2d5c [tinyxml2] patch fastrtps to use tinyxml2 namespace 2018-12-05 10:56:25 -08:00
Robert Schumacher
854a1e474e [fastcdr] Fix installed cmake files 2018-10-25 10:28:08 -07:00
Robert Schumacher
ff5d6eb3c8 [fastrtps][forest][octomap][sol2] Update hashes 2018-08-06 19:51:31 -07:00
Jacob Zhong
9b8245e6de Add package Fast-RTPS and enable modules for python (#2948)
* [ros2] Init packages

* [fastrtps] Finish porting

* Add python acquiring module

* [ros2] Setting up environment

* [ros2] remove ros2

* [vcpkg-acquire-python] Revert to split PR
2018-04-19 16:17:35 -07:00