aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2007-09-25 19:15:45 +0000
committerAvatar Mike Kelly <pioto@pioto.org> 2007-09-25 19:15:45 +0000
commit3726b6e4c6123643ea3c53ffe223943fee4eeb80 (patch)
tree1bfca301b3f336642ada0941b96da37dec968b90
parentafee24fedfdf2ab0898b7eb5f2cde507fd4e2a95 (diff)
downloadpaludis-3726b6e4c6123643ea3c53ffe223943fee4eeb80.tar.gz
paludis-3726b6e4c6123643ea3c53ffe223943fee4eeb80.tar.xz
Add a --with-svn-revision option so that the -scm ebuild can show the revision used in the --version output.
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 78a0e05..c5a267d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1230,11 +1230,18 @@ BUILDHOST=`hostname`
AC_SUBST([BUILDHOST])
BUILDDATE=`date +%Y-%m-%dT%H:%M:%S%z`
AC_SUBST([BUILDDATE])
+
if test -d "${ac_top_srcdir:-./}/.svn" ; then
SVNVERSION=`svnversion "${ac_top_srcdir:-./}"`
else
SVNVERSION=
fi
+AC_MSG_CHECKING([for svn revision])
+AC_ARG_WITH([svn-revision],
+ AS_HELP_STRING([--with-svn-revision], [Specify svn revision]),
+ SVNVERSION=`eval echo $withval`,
+ SVNVERSION=`eval echo $SVNVERSION`)
+AC_MSG_RESULT([$SVNVERSION])
AC_SUBST([SVNVERSION])
dnl }}}