Skip to content

Commit

Permalink
build: Refactor autotools setup to store version in separate file
Browse files Browse the repository at this point in the history
Store the version number in a `VERSION` file at the top of the tree.

This makes it easy to parse the current version by reading the contents
of the file, and also update it (manually or programatically) when
creating a new release.

Use m4 macros to read the version into the autotools configuration script.

Also update it from 2.0.14 to 2.0.15, since a 2.0.15 version was
released but the version inside the configure script was not updated.
(We will soon release a 2.0.16, but let's include this configuration
change there.)

Tested: `make distcheck` passes, confirmed that the `VERSION` file is
included inside the generated `numactl-2.0.15.tar.gz` tarball (which
should make a further `./autogen.sh` run succeed.)

Signed-off-by: Filipe Brandenburger <filbranden@gmail.com>
  • Loading branch information
filbranden authored and andikleen committed Sep 23, 2022
1 parent 5a99c6d commit 834dc76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.15
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AC_PREREQ([2.64])
AC_INIT([numactl], [2.0.14])
AC_INIT([numactl], m4_normalize(m4_include([VERSION])))

AC_CONFIG_SRCDIR([numactl.c])
AC_CONFIG_MACRO_DIR([m4])
Expand Down

0 comments on commit 834dc76

Please sign in to comment.