[asterisk-commits] qwell: branch 1.4 r80302 - /branches/1.4/build_tools/make_version

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 22 13:06:00 CDT 2007


Author: qwell
Date: Wed Aug 22 13:06:00 2007
New Revision: 80302

URL: http://svn.digium.com/view/asterisk?view=rev&rev=80302
Log:
Fix a bashism (we explicitly request /bin/sh).
Remove some oddly placed quotes I found in passing.

Modified:
    branches/1.4/build_tools/make_version

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=80302&r1=80301&r2=80302
==============================================================================
--- branches/1.4/build_tools/make_version (original)
+++ branches/1.4/build_tools/make_version Wed Aug 22 13:06:00 2007
@@ -14,7 +14,7 @@
     
     if [ "${PARTS}" = "trunk" ]
 	then
-	echo SVN-'trunk'-r${REV}
+	echo SVN-trunk-r${REV}
 	exit 0
     fi
     
@@ -28,13 +28,23 @@
       
       if [ ${BRANCH} != 0 ]
 	  then
-	  RESULT="${RESULT}-${PART}"
+	  if [ -z ${RESULT} ]
+	    then
+	    RESULT="${PART}"
+	  else
+	    RESULT="${RESULT}-${PART}"
+	  fi
 	  break
       fi
       
       if [ ${TEAM} != 0 ]
 	  then
-	  RESULT="${RESULT}-${PART}"
+	  if [ -z ${RESULT} ]
+	    then
+	    RESULT="${PART}"
+	  else
+	    RESULT="${RESULT}-${PART}"
+	  fi
 	  continue
       fi
       
@@ -62,6 +72,6 @@
 	then
 	echo ${RESULT}
 	else
-	echo SVN-${RESULT##-}-r${REV}${BASE:+-${BASE}}
+	echo SVN-${RESULT}-r${REV}${BASE:+-${BASE}}
     fi
 fi




More information about the asterisk-commits mailing list