[svn-commits] sruffell: branch linux/2.4 r9758 - /linux/branches/2.4/build_tools/make_version

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Feb 11 11:52:04 CST 2011


Author: sruffell
Date: Fri Feb 11 11:51:59 2011
New Revision: 9758

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9758
Log:
make_version: '[[' -> '[' since it's not a bash script.

'[[' is a bash construct specifically, yet #!/bin/sh is at the top of the
file.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks at digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Review: https://reviewboard.asterisk.org/r/940/

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9408

Modified:
    linux/branches/2.4/build_tools/make_version

Modified: linux/branches/2.4/build_tools/make_version
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/build_tools/make_version?view=diff&rev=9758&r1=9757&r2=9758
==============================================================================
--- linux/branches/2.4/build_tools/make_version (original)
+++ linux/branches/2.4/build_tools/make_version Fri Feb 11 11:51:59 2011
@@ -60,8 +60,8 @@
     SVN_REV=`git log --pretty=full -1 | grep -F "git-svn-id:" | sed -e "s/.*\@\([^\s]*\)\s.*/\1/g"`
     if [ -z "$SVN_REV" ]; then
         VERSION=`git describe --long --always --tags --dirty=M 2> /dev/null`
-        if [[ $? -ne 0 ]]; then
-            if [[ "`git ls-files -m | wc -l`" != "0" ]]; then
+        if [ $? -ne 0 ]; then
+            if [ "`git ls-files -m | wc -l`" != "0" ]; then
                 MODIFIED="M"
             fi
             # Some older versions of git do not support all the above
@@ -74,7 +74,7 @@
         BRANCH=0
         TEAM=0
 
-        if [[ "`git ls-files -m | wc -l`" != "0" ]]; then
+        if [ "`git ls-files -m | wc -l`" != "0" ]; then
             MODIFIED="M"
         fi
 




More information about the svn-commits mailing list