Commit graph

3 commits

Author SHA1 Message Date
Ray Strode
93416bd5e6 generate-version: Use day number instead of week number
Right now the version is generated from week number but that
means more than one release in a week won't work.

This commit changes it to day number.
2023-12-22 11:29:12 -05:00
Ray Strode
3e76e1343b generate-version: Fix script inside of a tarball
The heuristic to check whether or not we're inside of a git checkout
or a tarball isn't working properly.

This commit changes it to use git rev-parse --is-inside-git-dir which
is pretty specifically designed for this use case.

Closes: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/232
2023-12-22 10:36:40 -05:00
Ray Strode
36cf20c6fa meson: Generate version for reproducibility
Right now we call date directly from meson.build leading to
non-reproducible builds.

This commit makes it only call date when building from git,
otherwise it extracts the version from the tarball name.

script borrowed from accountsservice.

Closes https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/188
2022-11-29 14:40:11 -05:00