summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2022-01-11 10:17:59 -0500
committerRay Strode <rstrode@redhat.com>2022-01-11 10:38:28 -0500
commit7b203e49b98d39d43731500ed6ef0be92dcb66df (patch)
tree2b1f9a6febccaa4a92f0cba11ad2d59a2eb79e2c
parenta3dcafa8b217f328135b157d4fad3dd6525547b1 (diff)
autogoo: Determine project version from date
Numbers are arbitrary, and we've never successfully made it to version 1.0 after like 15 years or something. Furthermore, plymouth has a very slow release schedule at present and some distros hate building from git. So, I'd like to start generating tarballs more regularly. Adopting a version number derived from the date will help facilitate that. This commit changes AC_INIT to compute the version automatically. https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/143 https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/158
-rw-r--r--VERSION1
-rw-r--r--configure.ac4
2 files changed, 4 insertions, 1 deletions
diff --git a/VERSION b/VERSION
new file mode 100644
index 00000000..85b7c695
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.9.6
diff --git a/configure.ac b/configure.ac
index c82ba968..6e00c0c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,6 @@
-AC_INIT([plymouth],[0.9.6],[https://gitlab.freedesktop.org/plymouth/plymouth/issues])
+AC_INIT([plymouth],
+ m4_esyscmd_s([date +%y.%V.$(git rev-list $(git describe --abbrev=0)..HEAD --count) || echo 0]),
+ [https://gitlab.freedesktop.org/plymouth/plymouth/issues])
AC_CONFIG_SRCDIR(src/main.c)
AC_CONFIG_HEADER(config.h)
AC_CONFIG_AUX_DIR(build-tools)