Change all instances of [ to [[.
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 7 Mar 2007 17:46:59 +0000 (17:46 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 7 Mar 2007 17:46:59 +0000 (17:46 +0000)
Package-Manager: portage-2.1.2.1

app-emulation/vmware-player/ChangeLog
app-emulation/vmware-player/files/vmware-player.rc
app-emulation/vmware-server/ChangeLog
app-emulation/vmware-server/files/vmware-server.rc
app-emulation/vmware-workstation/ChangeLog
app-emulation/vmware-workstation/files/vmware-workstation.rc

index 7a5a1e8aa80d29b3df4fab17a3835f0fc6b693e1..cebbdd1e352329dfdefa15388abd0105d23b6301 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-emulation/vmware-player
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.31 2007/03/05 00:01:45 ikelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.32 2007/03/07 17:43:09 wolf31o2 Exp $
+
+  07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+  files/vmware-player.rc:
+  Change all instances of [ to [[.
 
   04 Mar 2007; Mike Auty <ikelos@gentoo.org>
   files/digest-vmware-player-1.0.2.29634,
index da6eb89f7cd947fe413ab030a14e328af6e1bf57..18b67ae18c419ade101cc9ed6517bb099f2b0791 100644 (file)
@@ -1,11 +1,12 @@
 #!/sbin/runscript
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/files/vmware-player.rc,v 1.1 2006/08/09 11:54:25 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/files/vmware-player.rc,v 1.2 2007/03/07 17:43:09 wolf31o2 Exp $
 
 depend() {
        need localmount
-       use logger net samba
+       use logger net
+       after samba
 }
 
 vmware-prettify() {
@@ -15,22 +16,22 @@ vmware-prettify() {
        msgtype=0
        while read line
        do
-               [ "$line" == "" ] && continue
-               if [ "$msgtype" -le "0" ]
+               [[ "${line}" == "" ]] && continue
+               if [[ "${msgtype}" -le "0" ]]
                then
-                       if [ "$msgtype" == "-1" ]
+                       if [[ "${msgtype}" == "-1" ]]
                        then
-                               ewarn $line
+                               ewarn ${line}
                                continue
                        fi
-                       if [ "${line/*:*/}" == "" ]
+                       if [[ "${line/*:*/}" == "" ]]
                        then
-                               einfon $line
+                               einfon ${line}
                                echo
                                eend 0
                                msgtype=1
                        else
-                               ewarn $line
+                               ewarn ${line}
                                msgtype=-1
                                waserror=1
                        fi
@@ -38,25 +39,25 @@ vmware-prettify() {
                fi
 
                # Strip out anything after the <esc> code
-               message=`echo $line | sed -e "s/^\(.*\)\e.*$/\1/"`
-               einfon "  $message"
+               message=`echo ${line} | sed -e "s/^\(.*\)\e.*$/\1/"`
+               einfon "  ${message}"
                echo
 
-               echo $line | grep done > /dev/null
+               echo ${line} | grep done > /dev/null
                status=$?
-               eend $status
+               eend ${status}
 
-               if [ "$status" != "0" ]
+               if [[ "${status}" != "0" ]]
                then
-                       logger -p local0.err -t vmware-${state} "$line"
-                       waserror=$status
+                       logger -p local0.err -t vmware-${state} "${line}"
+                       waserror=${status}
                fi
        done
-       if [ "$msgtype" == "-1" ]
+       if [[ "${msgtype}" == "-1" ]]
        then
                eend 1 "VMware is not properly configured! See above."
        fi
-       return $waserror
+       return ${waserror}
 }
 
 start() {
index af67762f57028217b5635db4c695ee4e1f7047a5..8d2173ed1591a838a6022e75f3cbda9e81428bc5 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-emulation/vmware-server
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/ChangeLog,v 1.19 2007/03/05 00:05:09 ikelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/ChangeLog,v 1.20 2007/03/07 17:44:59 wolf31o2 Exp $
+
+  07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+  files/vmware-server.rc:
+  Change all instances of [ to [[.
 
 *vmware-server-1.0.2.39867 (04 Mar 2007)
 
index 238d75989087e1767ce15ee5ca487d3c92fdddda..0397f5ebe377080a72c6e002cdc8e52361dd96df 100644 (file)
@@ -1,7 +1,7 @@
 #!/sbin/runscript
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/files/vmware-server.rc,v 1.1 2006/07/31 20:23:50 ikelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/files/vmware-server.rc,v 1.2 2007/03/07 17:45:00 wolf31o2 Exp $
 
 depend() {
        need localmount xinetd
@@ -16,22 +16,22 @@ vmware-prettify() {
        msgtype=0
        while read line
        do
-               [ "$line" == "" ] && continue
-               if [ "$msgtype" -le "0" ]
+               [[ "${line}" == "" ]] && continue
+               if [[ "${msgtype}" -le "0" ]]
                then
-                       if [ "$msgtype" == "-1" ]
+                       if [[ "${msgtype}" == "-1" ]]
                        then
-                               ewarn $line
+                               ewarn ${line}
                                continue
                        fi
-                       if [ "${line/*:*/}" == "" ]
+                       if [[ "${line/*:*/}" == "" ]]
                        then
-                               einfon $line
+                               einfon ${line}
                                echo
                                eend 0
                                msgtype=1
                        else
-                               ewarn $line
+                               ewarn ${line}
                                msgtype=-1
                                waserror=1
                        fi
@@ -39,25 +39,25 @@ vmware-prettify() {
                fi
 
                # Strip out anything after the <esc> code
-               message=`echo $line | sed -e "s/^\(.*\)\e.*$/\1/"`
-               einfon "  $message"
+               message=`echo ${line} | sed -e "s/^\(.*\)\e.*$/\1/"`
+               einfon "  ${message}"
                echo
 
-               echo $line | grep done > /dev/null
+               echo ${line} | grep done > /dev/null
                status=$?
-               eend $status
+               eend ${status}
 
-               if [ "$status" != "0" ]
+               if [[ "${status}" != "0" ]]
                then
-                       logger -p local0.err -t vmware-${state} "$line"
-                       waserror=$status
+                       logger -p local0.err -t vmware-${state} "${line}"
+                       waserror=${status}
                fi
        done
-       if [ "$msgtype" == "-1" ]
+       if [[ "${msgtype}" == "-1" ]]
        then
                eend 1 "VMware is not properly configured! See above."
        fi
-       return $waserror
+       return ${waserror}
 }
 
 start() {
index f8bd589d82b60303d5e7b2c5d545b2724ca696ff..93f9e1eb1a96f40af6fa8166140a9557c7157d66 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-emulation/vmware-workstation
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.153 2007/03/05 00:03:08 ikelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.154 2007/03/07 17:46:59 wolf31o2 Exp $
+
+  07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+  files/vmware-workstation.rc:
+  Change all instances of [ to [[.
 
   05 Mar 2007; Mike Auty <ikelos@gentoo.org>
   files/digest-vmware-workstation-4.5.3.19414-r7,
index 210db68d9f0e79d9c002a7ab761c087e65016410..9085036aac76f0ea337d0cd2c81621bc39fe8fcc 100644 (file)
@@ -1,7 +1,7 @@
 #!/sbin/runscript
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/files/vmware-workstation.rc,v 1.1 2006/08/04 14:46:55 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/files/vmware-workstation.rc,v 1.2 2007/03/07 17:46:59 wolf31o2 Exp $
 
 depend() {
        need localmount
@@ -16,22 +16,22 @@ vmware-prettify() {
        msgtype=0
        while read line
        do
-               [ "$line" == "" ] && continue
-               if [ "$msgtype" -le "0" ]
+               [[ "${line}" == "" ]] && continue
+               if [[ "${msgtype}" -le "0" ]]
                then
-                       if [ "$msgtype" == "-1" ]
+                       if [[ "${msgtype}" == "-1" ]]
                        then
-                               ewarn $line
+                               ewarn ${line}
                                continue
                        fi
-                       if [ "${line/*:*/}" == "" ]
+                       if [[ "${line/*:*/}" == "" ]]
                        then
-                               einfon $line
+                               einfon ${line}
                                echo
                                eend 0
                                msgtype=1
                        else
-                               ewarn $line
+                               ewarn ${line}
                                msgtype=-1
                                waserror=1
                        fi
@@ -39,25 +39,25 @@ vmware-prettify() {
                fi
 
                # Strip out anything after the <esc> code
-               message=`echo $line | sed -e "s/^\(.*\)\e.*$/\1/"`
-               einfon "  $message"
+               message=`echo ${line} | sed -e "s/^\(.*\)\e.*$/\1/"`
+               einfon "  ${message}"
                echo
 
-               echo $line | grep done > /dev/null
+               echo ${line} | grep done > /dev/null
                status=$?
-               eend $status
+               eend ${status}
 
-               if [ "$status" != "0" ]
+               if [[ "${status}" != "0" ]]
                then
-                       logger -p local0.err -t vmware-${state} "$line"
-                       waserror=$status
+                       logger -p local0.err -t vmware-${state} "${line}"
+                       waserror=${status}
                fi
        done
-       if [ "$msgtype" == "-1" ]
+       if [[ "${msgtype}" == "-1" ]]
        then
                eend 1 "VMware is not properly configured! See above."
        fi
-       return $waserror
+       return ${waserror}
 }
 
 start() {