Skip to content

Commit

Permalink
Startup: Print version number better
Browse files Browse the repository at this point in the history
Version number is now inferred by git during the autogen.sh step.

It's a more automated version of the previous commit.
  • Loading branch information
ydahhrk committed Sep 6, 2021
1 parent bd94be2 commit b6dbf0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([fort], [1.5.1], [fort-validator@nic.mx])
AC_INIT([fort], [m4_esyscmd_s([git describe --dirty --always --tags])],
[fort-validator@nic.mx])
AC_CONFIG_SRCDIR([src/main.c])
AM_INIT_AUTOMAKE([subdir-objects])

Expand Down
2 changes: 1 addition & 1 deletion src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ print_config(void)
{
struct option_field const *opt;

pr_op_info("Fort 1.5.1.2");
pr_op_info(PACKAGE_STRING);
pr_op_info("Configuration {");

FOREACH_OPTION(options, opt, 0xFFFF)
Expand Down

0 comments on commit b6dbf0e

Please sign in to comment.