From b5fa42ff8f9709e43960b29ac6d2696b4d1deaf5 Mon Sep 17 00:00:00 2001 From: Josh Elsasser Date: Tue, 25 Apr 2006 05:10:08 +0000 Subject: [PATCH] Show subversion revision number in version string. --- Makefile.common | 2 +- configure | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index f3fd612ca..df84854a9 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,6 +1,6 @@ VERSION_MAJOR = 0 VERSION_MINOR = 5 -VERSION_STRING = 0.6-svn +VERSION_STRING = 0.6-svn-r$(SVN_REVISION) TMPCFLAGS = -g -Wall -W -O3 -funroll-loops -D_FILE_OFFSET_BITS=64 \ -D_LARGEFILE_SOURCE -D_GNU_SOURCE \ diff --git a/configure b/configure index cbac89b61..34c9fa5eb 100755 --- a/configure +++ b/configure @@ -16,6 +16,7 @@ CXX="${CXX-c++}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" +SVNREV="`echo '$Rev$' | sed 's/[^0-9]*//g'`" # # Functions @@ -293,6 +294,7 @@ lrintf_test rm -f Makefile.config cat > Makefile.config << EOF CONFIGURE_RUN = yes +SVN_REVISION = $SVNREV SYSTEM = $SYSTEM BEOS_NETSERVER = $BEOS_NETSERVER PTHREAD = $PTHREAD