<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vcpkg/ports/units, branch aws-lambda-cpp</title>
<subtitle>Forked from https://github.com/microsoft/vcpkg</subtitle>
<link rel='alternate' type='text/html' href='https://git.otimperi.dev/vcpkg/'/>
<entry>
<title>Bulk convert control files. (#19986)</title>
<updated>2021-09-09T08:24:04+00:00</updated>
<author>
<name>Billy O'Neal</name>
<email>bion@microsoft.com</email>
</author>
<published>2021-09-09T08:24:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.otimperi.dev/vcpkg/commit/?id=b295670e4bab14debe88d92cd5364b21ce26232c'/>
<id>b295670e4bab14debe88d92cd5364b21ce26232c</id>
<content type='text'>
```
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
```</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
```
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
```</pre>
</div>
</content>
</entry>
<entry>
<title>[units] Update to 2.3.1 (#11308)</title>
<updated>2020-05-12T23:09:10+00:00</updated>
<author>
<name>Krzysztof Machura</name>
<email>krzysztof.machura@wellner.pl</email>
</author>
<published>2020-05-12T23:09:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.otimperi.dev/vcpkg/commit/?id=faae10f77be911fb5bc4517816a24342f7f6bbb2'/>
<id>faae10f77be911fb5bc4517816a24342f7f6bbb2</id>
<content type='text'>
* [units] Update to 2.3.1

* [units] Update portfile

Co-authored-by: Krzysztof Machura &lt;krzysztofmachura1@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* [units] Update to 2.3.1

* [units] Update portfile

Co-authored-by: Krzysztof Machura &lt;krzysztofmachura1@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[WIP] Add a Homepage URL entry for vcpkg ports (#2933)</title>
<updated>2019-06-15T23:54:47+00:00</updated>
<author>
<name>pravic</name>
<email>ehysta@gmail.com</email>
</author>
<published>2019-06-15T23:54:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.otimperi.dev/vcpkg/commit/?id=18b029a5e3997fa4fdc7d3d06d56568a1d6f74ad'/>
<id>18b029a5e3997fa4fdc7d3d06d56568a1d6f74ad</id>
<content type='text'>
* [vcpkg] Add "Homepage" field to the CONTROL files.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* [vcpkg] Add "Homepage" field to the CONTROL files.</pre>
</div>
</content>
</entry>
<entry>
<title>git push clean-up of portfile</title>
<updated>2017-09-18T23:15:16+00:00</updated>
<author>
<name>Nic Holthaus</name>
<email>nholthaus@gmail.com</email>
</author>
<published>2017-09-18T23:15:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.otimperi.dev/vcpkg/commit/?id=2e6bb72599d3789ac7af530cde0d56afab0a76ff'/>
<id>2e6bb72599d3789ac7af530cde0d56afab0a76ff</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add port for nholthaus/units</title>
<updated>2017-09-18T23:12:32+00:00</updated>
<author>
<name>Nic Holthaus</name>
<email>nholthaus@gmail.com</email>
</author>
<published>2017-09-18T23:12:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.otimperi.dev/vcpkg/commit/?id=0b10f30a99ec2c423125a8137b7c6caef93013ef'/>
<id>0b10f30a99ec2c423125a8137b7c6caef93013ef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
