[asterisk-commits] kpfleming: branch 1.4 r55869 - in /branches/1.4: ./ build_tools/make_version

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Feb 21 07:06:48 MST 2007


Author: kpfleming
Date: Wed Feb 21 08:06:47 2007
New Revision: 55869

URL: http://svn.digium.com/view/asterisk?view=rev&rev=55869
Log:
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:
    branches/1.4/   (props changed)
    branches/1.4/build_tools/make_version

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/build_tools/make_version
URL: http://svn.digium.com/view/asterisk/branches/1.4/build_tools/make_version?view=diff&rev=55869&r1=55868&r2=55869
==============================================================================
--- branches/1.4/build_tools/make_version (original)
+++ branches/1.4/build_tools/make_version Wed Feb 21 08:06:47 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