summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-19 22:35:39 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-19 22:35:39 -0400
commit793294467bb96a9426ac0aefd5cb7ae3ea670134 (patch)
treef6b45ec4b438a7adf6af4e8f4a46ae83e8ea5056 /configure.ac
parent119b38e6f88486a94a743fde6e56d248b51a86db (diff)
downloadlibgd-793294467bb96a9426ac0aefd5cb7ae3ea670134.tar.gz
libtool: set revision based on package version
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2706c48..1f9089f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,10 @@ AC_SUBST(GDLIB_VERSION)
# See http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
GDLIB_LT_CURRENT=3
-GDLIB_LT_REVISION=0
+dnl This isn't 100% correct, but it tends to be a close enough approximation
+dnl for how we manage the codebase. It's rare to do a release that doesn't
+dnl modify the library since this project is centered around the library.
+GDLIB_LT_REVISION=$(printf '%i%02i%02i' $GDLIB_MAJOR $GDLIB_MINOR $GDLIB_REVISION)
GDLIB_LT_AGE=0
AC_SUBST(GDLIB_LT_CURRENT)
AC_SUBST(GDLIB_LT_REVISION)