aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Arias <leo.arias@canonical.com>2017-07-16 04:23:49 +0800
committerLeo Arias <leo.arias@canonical.com>2017-07-18 22:33:49 +0800
commit841fe4bf269523431ad314b10d068f42c7d97281 (patch)
tree2e765b3780d4d064c7d416978fc007f26085d92b
parent37553dca9ae02b33d31c09323a84cc47f94b0176 (diff)
downloaddexon-solidity-841fe4bf269523431ad314b10d068f42c7d97281.tar
dexon-solidity-841fe4bf269523431ad314b10d068f42c7d97281.tar.gz
dexon-solidity-841fe4bf269523431ad314b10d068f42c7d97281.tar.bz2
dexon-solidity-841fe4bf269523431ad314b10d068f42c7d97281.tar.lz
dexon-solidity-841fe4bf269523431ad314b10d068f42c7d97281.tar.xz
dexon-solidity-841fe4bf269523431ad314b10d068f42c7d97281.tar.zst
dexon-solidity-841fe4bf269523431ad314b10d068f42c7d97281.zip
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..df52a837 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
+ touch ../src/prerelease.txt
+ fi