Merged revisions 65541 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 22 May 2007 20:26:35 +0000 (20:26 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 22 May 2007 20:26:35 +0000 (20:26 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r65541 | kpfleming | 2007-05-22 16:25:41 -0400 (Tue, 22 May 2007) | 2 lines

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/trunk@65542 65c4cc65-6c06-0410-ace0-fbb531ad65f3

build_tools/make_version

index 6176de2..a29fe2b 100755 (executable)
@@ -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