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
This commit is contained in:
Ray Strode 2022-01-11 10:17:59 -05:00
parent a3dcafa8b2
commit 7b203e49b9
2 changed files with 4 additions and 1 deletions

1
VERSION Normal file
View file

@ -0,0 +1 @@
0.9.6

View 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)