From: Automerge Script Date: Wed, 21 Feb 2007 15:21:36 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.16-netsec~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96300341b94857c77025df9762fd4c0d71c11e5e;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@55913 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/build_tools/make_svn_branch_name b/build_tools/make_svn_branch_name index 848ca49eb2..f934ee468d 100755 --- a/build_tools/make_svn_branch_name +++ b/build_tools/make_svn_branch_name @@ -3,6 +3,7 @@ PARTS=`LANG=C svn info | grep URL | awk '{print $2;}' | sed -e 's:^.*/svn/asterisk/::' | sed -e 's:/: :g'` BRANCH=0 TEAM=0 +TAG=0 REV=`svnversion -c . | cut -d: -f2` @@ -14,6 +15,12 @@ fi for PART in $PARTS do + if [ ${TAG} != 0 ] + then + RESULT="${PART}" + break + fi + if [ ${BRANCH} != 0 ] then RESULT="${RESULT}-${PART}" @@ -35,8 +42,7 @@ do if [ "${PART}" = "tags" ] then - BRANCH=1 - RESULT="tag" + TAG=1 continue fi @@ -47,4 +53,9 @@ do fi done -echo ${RESULT##-}-r${REV} +if [ ${TAG} != 0 ] +then + echo ${RESULT} +else + echo ${RESULT##-}-r${REV} +fi