Commit Graph

7 Commits

Author SHA1 Message Date
Gregory Popovitch
2f9712e0f5
[parallel-hashmap] Bump version to 1.4.0 (#41100) 2024-09-24 10:05:26 -04:00
Jia Yue Hua
76670cd268
[parallel-hashmap] update to 1.3.12 (#37645) 2024-03-25 15:32:17 -07:00
Gregory Popovitch
80d08d2900
[parallel-hashmap] Update version to v1.3.11 (#31075) 2023-04-24 18:47:56 -07:00
Gregory Popovitch
dc558404ec
[parallel-hashmap] Bump version to 1.3.8 (#27061)
* [parallel-hashmap] Bump version to 1.3.8

* run x-add-version
2022-10-03 13:58:05 -07:00
Gregory Popovitch
c954a05164
[parallel-hashmap] Update to version 1.36 (#26932)
* [parallel-hashmap] bump version to 1.36

* [parallel-hashmap] bump version to 1.36

* disable building test and example projects in vcpkg install

* update SHA
2022-09-27 15:52:04 -07:00
Gregory Popovitch
54ab0528f8
[parallel-hashmap] update version to 1.34 (#23365)
* [parallel-hashmap] update version to 1.34

* run `vcpkg x-add-version --all` and change `version-string` to `version`

* make suggested changes

* add changes suggested by @JonLui1993

* ran `vcpkg x-add-version --all ` as suggested

* update version

* update parallel-hashmap.json

Co-authored-by: Jonliu1993 <13720414433@163.com>
2022-03-04 11:35:45 -08: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