summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-02-21 14:00:20 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-02-21 14:00:20 +0000
commitad92af95163ac57a8e07852ade7a359d6fc74357 (patch)
tree30cd1a42e1e9535f0b8883a0722b8d31e68d5e11 /build_tools
parent5f3f84f382fb25c562eaca7bb3f7da0d54073673 (diff)
use new tag version numbering script
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2194 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/make_svn_branch_name17
1 files changed, 14 insertions, 3 deletions
diff --git a/build_tools/make_svn_branch_name b/build_tools/make_svn_branch_name
index 525d282..60eeb11 100755
--- a/build_tools/make_svn_branch_name
+++ b/build_tools/make_svn_branch_name
@@ -4,6 +4,7 @@ PARTS=`LANG=C svn info | grep URL | awk '{print $2;}' | sed -e s:^.*/svn/zaptel/
BETA=0
BRANCH=0
TEAM=0
+TAG=0
REV=`svnversion -c . | cut -d: -f2`
@@ -21,6 +22,12 @@ do
break
fi
+ if [ ${TAG} != 0 ]
+ then
+ RESULT="${PART}"
+ break
+ fi
+
if [ ${BRANCH} != 0 ]
then
RESULT="${RESULT}-${PART}"
@@ -49,8 +56,7 @@ do
if [ "${PART}" = "tags" ]
then
- BRANCH=1
- RESULT="tag"
+ TAG=1
continue
fi
@@ -61,4 +67,9 @@ do
fi
done
-echo ${RESULT##-}-r${REV}
+if [ ${TAG} != 0 ]
+then
+ echo ${RESULT}
+else
+ echo ${RESULT##-}-r${REV}
+fi