aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-07-25 22:14:24 +0800
committerGitHub <noreply@github.com>2017-07-25 22:14:24 +0800
commit7ad42aeeafe9f6d47ef5890add06b51d005b32ca (patch)
tree5e7dd29a4aa3256a0d1db72e0971074ffc285eb9
parent3c2b710b5ed5c2f936079f1771a06618a2bb84a1 (diff)
parente0b13ec89aef2bfb02ded352dda1f39404bb7628 (diff)
downloaddexon-solidity-7ad42aeeafe9f6d47ef5890add06b51d005b32ca.tar.gz
dexon-solidity-7ad42aeeafe9f6d47ef5890add06b51d005b32ca.tar.zst
dexon-solidity-7ad42aeeafe9f6d47ef5890add06b51d005b32ca.zip
Merge pull request #2572 from elopio/snap-version
Prepare the version of the snap package for the release tags
-rw-r--r--snap/snapcraft.yaml8
1 files changed, 7 insertions, 1 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index f0f3310a..c9f67566 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,5 +1,6 @@
name: solc
-version: master
+version: develop
+version-script: git describe --exact-match --tags 2> /dev/null || echo "develop"
summary: The Solidity Contract-Oriented Programming Language
description: |
Solidity is a contract-oriented, high-level language whose syntax is similar
@@ -27,3 +28,8 @@ parts:
plugin: cmake
build-packages: [build-essential, libboost-all-dev]
stage-packages: [libicu55]
+ prepare: |
+ if git describe --exact-match --tags 2> /dev/null
+ then
+ echo -n > ../src/prerelease.txt
+ fi