Skip to content

Commit

Permalink
Store VERSION into the release tarball (3.2.x)
Browse files Browse the repository at this point in the history
This way autoreconf can still be run on release tarballs (e.g. to
apply patches to the build system) while preserving the version number.

The tpm2-abrmd already uses this approach.

Fixes: tpm2-software#2329

Signed-off-by: Petr Gotthard <petr.gotthard@centrum.cz>
  • Loading branch information
gotthardp authored and JuergenReppSIT committed Apr 19, 2022
1 parent 293e1b5 commit 2eac8df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ EXTRA_DIST += \
LICENSE \
MAINTAINERS \
README.md \
RELEASE.md
RELEASE.md \
VERSION

# Windows code / core build files
EXTRA_DIST += \
Expand Down
2 changes: 2 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
set -e

git describe --tags --always --dirty > VERSION

# generate list of source files for use in Makefile.am
# if you add new source files, you must run ./bootstrap again
src_listvar () {
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# All rights reserved.

AC_INIT([tpm2-tss],
[m4_esyscmd_s([git describe --tags --always --dirty])],
[m4_esyscmd_s([cat ./VERSION])],
[https://github.com/tpm2-software/tpm2-tss/issues],
[],
[https://github.com/tpm2-software/tpm2-tss])
Expand Down

0 comments on commit 2eac8df

Please sign in to comment.