[svn-commits] sruffell: linux/trunk r9408 - /linux/trunk/build_tools/make_version

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Sep 24 17:44:44 CDT 2010


Author: sruffell
Date: Fri Sep 24 17:44:41 2010
New Revision: 9408

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9408
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/

Modified:
    linux/trunk/build_tools/make_version

Modified: linux/trunk/build_tools/make_version
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/build_tools/make_version?view=diff&rev=9408&r1=9407&r2=9408
==============================================================================
--- linux/trunk/build_tools/make_version (original)
+++ linux/trunk/build_tools/make_version Fri Sep 24 17:44:41 2010
@@ -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