aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-12-18 06:38:15 +0100
committerTristan Gingold <tgingold@free.fr>2017-12-18 06:38:15 +0100
commit49b28b35aade6d0454f5cab5068ecc85386d9e04 (patch)
tree86742948ad28c4eb8545ab49bc84a2a041e58100 /dist
parentd0c39128ab7f8aac8c51e24ba8e3b6fa55e81f44 (diff)
downloadghdl-49b28b35aade6d0454f5cab5068ecc85386d9e04.tar.gz
ghdl-49b28b35aade6d0454f5cab5068ecc85386d9e04.tar.bz2
ghdl-49b28b35aade6d0454f5cab5068ecc85386d9e04.zip
appveyor: tentatively adjust tagname for versions.
For #496
Diffstat (limited to 'dist')
-rw-r--r--dist/windows/appveyor/build.ps17
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/windows/appveyor/build.ps1 b/dist/windows/appveyor/build.ps1
index 2421bd16d..c086ec0ea 100644
--- a/dist/windows/appveyor/build.ps1
+++ b/dist/windows/appveyor/build.ps1
@@ -53,13 +53,16 @@ $GHDL_BUILD_DIR = "$($env:APPVEYOR_BUILD_FOLDER)\build\$BUILD_DIRNAME"
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
- $PREFIX_DIRNAME = "$($env:APPVEYOR_REPO_TAG_NAME)-$BUILD_DIRNAME"
+ # There is a tag. Remove the leading v.
+ $BUILD_VERSION = $($env:APPVEYOR_REPO_TAG_NAME) -creplace "^v", ""
}
else
{
- $PREFIX_DIRNAME = "$($env:APPVEYOR_BUILD_VERSION)-$BUILD_DIRNAME"
+ $BUILD_VERSION = $($env:APPVEYOR_BUILD_VERSION)
}
+$PREFIX_DIRNAME = "$BUILD_VERSION-$BUILD_DIRNAME"
+
$GHDL_PREFIX_DIR = "c:/Tools/GHDL/$PREFIX_DIRNAME"
$ZipFile = "ghdl-$PREFIX_DIRNAME.zip"