From 5639fcf39aae98bc482a8ec4e26da6e706936b20 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Wed, 10 Mar 2021 17:11:08 +0100 Subject: [PATCH] Move to common m4 versioning macros --- configure.ac.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac.in b/configure.ac.in index cdba32f..59613f6 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -7,7 +7,17 @@ dnl Copyright 2010 Florian Rivoal dnl Copyright 2014 Mike Massonnet dnl -m4_define([netload_version],[1.3.2]) +dnl *************************** +dnl *** Version information *** +dnl *************************** +m4_define([netload_version_major], [1]) +m4_define([netload_version_minor], [3]) +m4_define([netload_version_micro], [2]) +m4_define([netload_version_build], [@REVISION@]) +m4_define([netload_version_tag], [git]) +m4_define([netload_version], [netload_version_major().netload_version_minor().netload_version_micro()ifelse(netload_version_tag(), [git], [netload_version_tag()-netload_version_build()], [netload_version_tag()])]) + +m4_define([netload_debug_default], [ifelse(netload_version_tag(), [git], [yes], [minimum])]) AC_INIT([xfce4-netload-plugin], [netload_version], [xfce-dev@xfce.org])