]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Add build-aux/version.txt
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 26 Apr 2024 10:49:36 +0000 (13:49 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 26 Apr 2024 15:26:32 +0000 (18:26 +0300)
This is a new *duplicated* location for the package version.
Previously version was only in src/liblzma/api/lzma/version.h
from which it was extracted using build-aux/version.sh or using
a regex in CMakeLists.txt.

With Meson, this isn't practical anymore. While Meson can get
the version from an external command, such commands would need
to be available on non-POSIX targets as well. Even Python cannot
be required as the plan is to ensure that the Meson-based build
is compatible with the C99-only muon as well.

Makefile.am
build-aux/version.txt [new file with mode: 0644]

index e32eb4c308dc7a3e545432e2aefd2d6d26091c2e..feede2f8c0bf69fbce6eae4f236ad0693be0df5d 100644 (file)
@@ -67,6 +67,7 @@ EXTRA_DIST = \
        autogen.sh \
        build-aux/manconv.sh \
        build-aux/version.sh \
+       build-aux/version.txt \
        po/xz.pot-header
 
 ACLOCAL_AMFLAGS = -I m4
diff --git a/build-aux/version.txt b/build-aux/version.txt
new file mode 100644 (file)
index 0000000..85bc3f1
--- /dev/null
@@ -0,0 +1 @@
+5.7.0alpha