From: Kevin P. Fleming Date: Tue, 22 May 2007 20:25:41 +0000 (+0000) Subject: when building a version string for a developer branch, include the base branch in... X-Git-Tag: 1.4.5~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0be58c8e1a88b63a6d72617f0d24b33709a7b90;p=thirdparty%2Fasterisk.git when building a version string for a developer branch, include the base branch in the version string git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65541 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/build_tools/make_version b/build_tools/make_version index 6176de2c0b..a29fe2b322 100755 --- a/build_tools/make_version +++ b/build_tools/make_version @@ -9,6 +9,8 @@ elif [ -d .svn ]; then TAG=0 REV=`svnversion -c ${1} | cut -d: -f2` + + BASE=`LANG=C svn pg svnmerge-integrated ${1} | cut -d: -f1` if [ "${PARTS}" = "trunk" ] then @@ -60,6 +62,6 @@ elif [ -d .svn ]; then then echo ${RESULT} else - echo SVN-${RESULT##-}-r${REV} + echo SVN-${RESULT##-}-r${REV}${BASE:+-${BASE}} fi fi