Skip to content

Commit

Permalink
[build] Show a help message when autoreconf fails to get the version
Browse files Browse the repository at this point in the history
This is relevant when a user gets the source code by clicking the
"Download ZIP" in GitHub (or "Source code" in the release page) and
then tries to follow the build instruction.
  • Loading branch information
tueda committed Jul 19, 2016
1 parent c71dea6 commit ad3f1a2
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,25 @@ m4_define([FORM_VERSION], m4_esyscmd_s([
if test -f .version; then
cat .version
else
scripts/git-version-gen.sh -C . -v
scripts/git-version-gen.sh -C . -v || cat <<END >&2
========================================================================
Failed to determine the version of the source code.
The reason may be
- this is neither a source distribution (containing the configure script)
nor a cloned Git repository,
- some required utilities (e.g., git) are missing.
Source distributions and some binaries can be found in:
http://www.nikhef.nl/~form/maindir/binaries/binaries.html
https://github.com/vermaseren/form/releases
The latest source code can be obtained as
git clone https://github.com/vermaseren/form.git
========================================================================
END
fi
]))

Expand Down

0 comments on commit ad3f1a2

Please sign in to comment.