summaryrefslogtreecommitdiff
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
parent87af2691a1891a9a1bbb57f86395995fb212921e (diff)
Get version from the guix package0.3.0
-rw-r--r--configure.ac2
-rwxr-xr-xget-version5
2 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3ec536c..ee5463a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
dnl -*- Autoconf -*-
-AC_INIT([web-client-with-cache], [0.0.0], [vivien@planete-kraus.eu])
+AC_INIT([web-client-with-cache], m4_esyscmd([bash ./get-version]), [vivien@planete-kraus.eu])
AC_CONFIG_SRCDIR([web-client-with-cache.org])
AM_INIT_AUTOMAKE([subdir-objects])
AM_SILENT_RULES([yes])
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