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

Print the commit with dillo -v #288

Open
rodarima opened this issue Oct 22, 2024 · 0 comments · May be fixed by #289
Open

Print the commit with dillo -v #288

rodarima opened this issue Oct 22, 2024 · 0 comments · May be fixed by #289
Labels
build Related with the build process enhancement New feature or request

Comments

@rodarima
Copy link
Member

When testing version of Dillo that are not released yet, it is convenient to see the exact commit they belong to. We can report this information by collecting it at the configure stage. Something like this:

% dillo -v
Dillo version 3.1.1 (commit 3480a9bb)
@rodarima rodarima added enhancement New feature or request build Related with the build process labels Oct 22, 2024
rodarima added a commit that referenced this issue Oct 22, 2024
Use git describe to get the current commit and other information to set
VERSION in config.h, when we are not using a tarball release. The file
".tarball-version" stores the version inside the tarball, so it is fixed
for releases. The .version file is not used, so no need to generate it.

If the git program is not present when running autogen.sh, the version
will be set to UNKNOWN. This situation will be very rare as you will
need git to fetch the sources, but continues to allow building Dillo
without the git program.

Fixes: #288
@rodarima rodarima linked a pull request Oct 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related with the build process enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant