Skip to content

Commit

Permalink
build: ensure autogen.sh updates package version
Browse files Browse the repository at this point in the history
Problem: PACKAGE_VERSION is not updated to match "git describe"
in a development tree when autogen.sh is run.

The previous value is retained in the autom4te.cache directory,
even when configure is regenerated, which seems counterintuitive.

Add the --force option to autoreconf (as called from autogen.sh)
to ensure that nothing is cached from previous builds.
  • Loading branch information
cmoussa1 committed Mar 3, 2022
1 parent 70d555c commit 29e92c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
#
echo "Running libtoolize --automake --copy ... "
libtoolize --automake --copy || exit
echo "Running autoreconf --verbose --install"
autoreconf --verbose --install || exit
echo "Running autoreconf --force --verbose --install"
autoreconf --force --verbose --install || exit
echo "Now run ./configure."

0 comments on commit 29e92c7

Please sign in to comment.