Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Refactor autotools setup to store version in separate file #141

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

filbranden
Copy link
Member

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 configure.ac autotools configuration script. (This recipe came from this StackOverflow answer.)

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.)

This should also help with #140 to automate creating a new release via GH Actions.

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>
@andikleen andikleen merged commit 834dc76 into numactl:master Sep 23, 2022
@filbranden filbranden deleted the version1 branch September 25, 2022 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants