From: Alberto Leiva Popper Date: Mon, 6 Sep 2021 16:05:00 +0000 (-0500) Subject: Startup: Print version number better X-Git-Tag: 1.5.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6dbf0e26d6663c75505fafa8da6a8a3772c1653;p=thirdparty%2FFORT-validator.git Startup: Print version number better Version number is now inferred by git during the autogen.sh step. It's a more automated version of the previous commit. --- diff --git a/configure.ac b/configure.ac index 3850f546..a19747f7 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/src/config.c b/src/config.c index 19d99984..15a54e32 100644 --- a/src/config.c +++ b/src/config.c @@ -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)