summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2024-04-17 10:03:55 +0200
committerDaniel Lange <DLange@git.local>2024-04-17 10:03:55 +0200
commit6f0adfab242f40e0a0e82445abac4e574c7a97e8 (patch)
treead1c9a9c4b16702ef246080154834fb6429ac820
parent6eb164ef681c693b6610fc460687a1c68996fd43 (diff)
parent2acd62d3af56cf00fae62a86dda8bbca0f0b1913 (diff)
Merge branch 'add-git-commit-to-compiled-dev-versions' of fasterit/htop
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0a90ca48..81836e8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,11 +2,19 @@
# Process this file with autoconf to produce a configure script.
# ----------------------------------------------------------------------
+# Build version string.
+# ----------------------------------------------------------------------
+
+m4_define([htop_git_version],
+ m4_normalize(m4_esyscmd([git describe --abbrev=7 --dirty --always --tags 2> /dev/null || echo ''])))
+m4_define([htop_release_version], [3.4.0-dev])
+
+# ----------------------------------------------------------------------
# Autoconf initialization.
# ----------------------------------------------------------------------
AC_PREREQ([2.69])
-AC_INIT([htop], [3.4.0-dev], [htop@groups.io], [], [https://htop.dev/])
+AC_INIT([htop], [m4_join([-],m4_defn([htop_release_version]),m4_defn([htop_git_version]))], [htop@groups.io], [], [https://htop.dev/])
AC_CONFIG_SRCDIR([htop.c])
AC_CONFIG_AUX_DIR([build-aux])

© 2014-2024 Faster IT GmbH | imprint | privacy policy