Skip to content

Commit b6dbf0e

Browse files
committed
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.
1 parent bd94be2 commit b6dbf0e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.69])
5-
AC_INIT([fort], [1.5.1], [[email protected]])
5+
AC_INIT([fort], [m4_esyscmd_s([git describe --dirty --always --tags])],
6+
67
AC_CONFIG_SRCDIR([src/main.c])
78
AM_INIT_AUTOMAKE([subdir-objects])
89

src/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ print_config(void)
928928
{
929929
struct option_field const *opt;
930930

931-
pr_op_info("Fort 1.5.1.2");
931+
pr_op_info(PACKAGE_STRING);
932932
pr_op_info("Configuration {");
933933

934934
FOREACH_OPTION(options, opt, 0xFFFF)

0 commit comments

Comments
 (0)