Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed May 29, 2021
1 parent 256ab26 commit 415f6d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions export.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ param (
$control = Get-Content "$vcpkg\ports\ffmpeg\vcpkg.json" | ConvertFrom-Json
$ver = $control."version-string"
$pver = $control."port-version"
if(!$ver) { throw "could not find version-string from vcpkg.json" }
if(!$pver) { throw "could not find port-string from vcpkg.json" }
if($ver -Eq $null) { throw "could not find version-string from vcpkg.json" }
if($pver -Eq $null) { throw "could not find port-version from vcpkg.json" }
$version = $control."version-string", $control."port-version" -Join "-"
Write-Output "FFmpeg version $version"

Expand Down
4 changes: 2 additions & 2 deletions ffmpeg-tag.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ $version_hash = $portfile[6].Substring(8)
$control = Get-Content "vcpkg\ports\ffmpeg\vcpkg.json" | ConvertFrom-Json
$ver = $control."version-string"
$pver = $control."port-version"
if(!$ver) { throw "could not find version-string from vcpkg.json" }
if(!$pver) { throw "could not find port-string from vcpkg.json" }
if($ver -Eq $null) { throw "could not find version-string from vcpkg.json" }
if($pver -Eq $null) { throw "could not find port-version from vcpkg.json" }
$tag = $ver.Replace("-", "") + ".$pver.0"
Write-Output "Tagging version $tag ($version_hash)."
& git tag -a -m "Tagging version $tag ($version_hash)." $tag

0 comments on commit 415f6d7

Please sign in to comment.