diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-01-22 08:36:13 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-01-22 09:14:04 -0500 |
commit | 796b784bcdce3154d204bfac0a88f92fbe66d2df (patch) | |
tree | 2da1bfb5ba9498c4d1751edab5c0dcf107c25834 /configure.ac | |
parent | 389169e975990a4e07b8fd948aaac4b13d7897e8 (diff) | |
download | sssd_unused-796b784bcdce3154d204bfac0a88f92fbe66d2df.tar.gz sssd_unused-796b784bcdce3154d204bfac0a88f92fbe66d2df.tar.xz sssd_unused-796b784bcdce3154d204bfac0a88f92fbe66d2df.zip |
Use version.m4 for setting the SSSD version
This is the preferred way of setting the version in a file, as
autotools will properly monitor this file for changes and rerun
autoconf/configure when necessary to update the version. This
means that we don't need to manually perform an autoreconf in
order to build a new RPM
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index b1e7d85e..d0785ad7 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,6 @@ +m4_include([version.m4]) AC_INIT([sssd], - m4_esyscmd([cat VERSION |head -n1 | tr -d '\n']), + VERSION_NUMBER, [sssd-devel@lists.fedorahosted.org]) AC_CONFIG_SRCDIR([BUILD.txt]) AC_CONFIG_AUX_DIR([build]) @@ -9,15 +10,8 @@ AC_PROG_INSTALL AC_CONFIG_SUBDIRS([replace common server sss_client]) -# If the VERSION file has a second line, we'll append it -# to the release tag when creating an RPM or SRPM -# This is intended for build systems to create snapshot -# RPMs. The format should be something like: -# .20090915gitf1bcde7 -# and would result in an SRPM looking like: -# sssd-0.5.0-0.20090915gitf1bcde7.fc11.src.rpm AC_SUBST([PRERELEASE_VERSION], - m4_esyscmd([cat VERSION |tail --lines=+2 |head -n1 | tr -d '\n'])) + PRERELEASE_VERSION_NUMBER) AC_CONFIG_FILES([Makefile contrib/sssd.spec]) AC_OUTPUT |