]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
autogoo: Determine project version from date
authorRay Strode <rstrode@redhat.com>
Tue, 11 Jan 2022 15:17:59 +0000 (10:17 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 11 Jan 2022 15:38:28 +0000 (10:38 -0500)
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 [new file with mode: 0644]
configure.ac

diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..85b7c69
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.9.6
index c82ba9684b95f35ce292d390928a0ff9ea4d0d58..6e00c0c0815232188309cfd3010a9ea94c5c317d 100644 (file)
@@ -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)