[asterisk-commits] kpfleming: trunk r55870 - in /trunk: ./
build_tools/make_version
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Feb 21 07:07:44 MST 2007
Author: kpfleming
Date: Wed Feb 21 08:07:43 2007
New Revision: 55870
URL: http://svn.digium.com/view/asterisk?view=rev&rev=55870
Log:
Merged revisions 55869 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r55869 | kpfleming | 2007-02-21 08:06:47 -0600 (Wed, 21 Feb 2007) | 10 lines
Merged revisions 55868 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r55868 | kpfleming | 2007-02-21 08:03:11 -0600 (Wed, 21 Feb 2007) | 2 lines
use new tag version script
........
................
Modified:
trunk/ (props changed)
trunk/build_tools/make_version
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/build_tools/make_version
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/make_version?view=diff&rev=55870&r1=55869&r2=55870
==============================================================================
--- trunk/build_tools/make_version (original)
+++ trunk/build_tools/make_version Wed Feb 21 08:07:43 2007
@@ -2,12 +2,11 @@
if [ -f ${1}/.version ]; then
cat ${1}/.version
-elif [ -f ${1}/.svnrevision ]; then
- echo SVN-`cat ${1}/.svnbranch`-r`cat ${1}/.svnrevision`
elif [ -d .svn ]; then
PARTS=`LANG=C svn info ${1} | grep URL | awk '{print $2;}' | sed -e 's:^.*/svn/asterisk/::' | sed -e 's:/: :g'`
BRANCH=0
TEAM=0
+ TAG=0
REV=`svnversion -c ${1} | cut -d: -f2`
@@ -19,6 +18,12 @@
for PART in $PARTS
do
+ if [ ${TAG} != 0 ]
+ then
+ RESULT="${PART}"
+ break
+ fi
+
if [ ${BRANCH} != 0 ]
then
RESULT="${RESULT}-${PART}"
@@ -40,8 +45,7 @@
if [ "${PART}" = "tags" ]
then
- BRANCH=1
- RESULT="tag"
+ TAG=1
continue
fi
@@ -52,5 +56,10 @@
fi
done
- echo SVN-${RESULT##-}-r${REV}
+ if [ ${TAG} != 0 ]
+ then
+ echo ${RESULT}
+ else
+ echo SVN-${RESULT##-}-r${REV}
+ fi
fi
More information about the asterisk-commits
mailing list