From 7b203e49b98d39d43731500ed6ef0be92dcb66df Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 11 Jan 2022 10:17:59 -0500 Subject: [PATCH] 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 --- VERSION | 1 + configure.ac | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..85b7c69 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.9.6 diff --git a/configure.ac b/configure.ac index c82ba96..6e00c0c 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)