Commit Graph

19 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
Martin Hořeňovský
0d7213c261 Make catch an alias for Catch2
Closes #2310
2018-02-01 12:01:57 +01:00
Alexander Karatarakis
9ea963dcec [catch] Fix hashes and download urls. Resolves #2151 2017-11-08 02:36:55 -08:00
Martin Hořeňovský
f96080db34 Update Catch to 2.0.1 2017-11-05 11:05:14 +01:00
Robert Schumacher
791fa2b903
Merge pull request #2091 from horenmar/catch-1.11.0
Update Catch to 1.11.0
2017-11-01 01:57:49 -07:00
Martin Hořeňovský
161244188d Update Catch to 1.11.0 2017-10-31 13:57:37 +01:00
Alexander Karatarakis
5e720f4dee [catch] Fix hash 2017-08-27 21:24:37 -07:00
Martin Hořeňovský
a1b92053f1 Update Catch to 1.10.0 2017-08-27 11:22:44 +02:00
Martin Hořeňovský
dc064a4436 Update Catch to 1.9.7 2017-08-11 00:03:15 +02:00
Martin Hořeňovský
112041512d Update Catch to 1.9.6 2017-06-27 12:38:01 +02:00
Robert Schumacher
d1c32d241f [catch] Rename downloaded files to not conflict with older versions or other ports 2017-06-15 10:18:14 -07:00
Martin Hořeňovský
d1841f11c7 Update Catch to 1.9.5 2017-06-15 13:09:44 +02:00
Martin Hořeňovský
2e7f9655f5 Update Catch to 1.9.4 2017-05-16 14:14:52 +02:00
Martin Hořeňovský
e8e9158e86 Update Catch to 1.9.1 2017-04-11 17:22:10 +02:00
Martin Hořeňovský
7624bb2a81 Update Catch to 1.8.2 2017-03-23 21:47:18 +01:00
Lee Berger
7c89415a6f [catch] update to version 1.8.1 2017-03-07 21:11:25 -05:00
Alexander Karatarakis
3036a2f8f4 [catch] Mark as header-only library 2016-10-26 12:15:17 -07:00
Alexander Karatarakis
60cb31b054 [catch] Download from specific sha, not master branch 2016-10-26 12:11:36 -07:00
Eric Mittelette
37d6623ea5 adding catch 2016-10-20 14:17:28 -07:00