]> git.ipfire.org Git - thirdparty/plymouth.git/commit
meson: Generate version for reproducibility
authorRay Strode <rstrode@redhat.com>
Tue, 29 Nov 2022 19:26:43 +0000 (14:26 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 29 Nov 2022 19:40:11 +0000 (14:40 -0500)
commit36cf20c6fa544f05b74aa2129261cedacfc96a80
tree27dd017f040b55175c17ecfdae8c08ba6bb11924
parente285c91fc4385dcc4cacc17499953f6453f5fe3f
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
meson.build
scripts/generate-version.sh [new file with mode: 0755]