summaryrefslogtreecommitdiff
path: root/get-version
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2021-02-21 19:21:13 +0100
committerVivien Kraus <vivien@planete-kraus.eu>2021-02-21 19:21:13 +0100
commit219ab14b6af3f5a73758792b152b765cf49c6bac (patch)
tree7c4b76a1cb8be1b5ffd906ff975eb3479225113d /get-version
parent87af2691a1891a9a1bbb57f86395995fb212921e (diff)
Get version from the guix package0.3.0
Diffstat (limited to 'get-version')
-rwxr-xr-xget-version5
1 files changed, 5 insertions, 0 deletions
diff --git a/get-version b/get-version
new file mode 100755
index 0000000..22aa929
--- /dev/null
+++ b/get-version
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+TARBALL_VERSION=$(cat .tarball-version 2>/dev/null || echo "SNAPSHOT")
+
+printf "%s" $TARBALL_VERSION