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

games-strategy/heroes3/ChangeLog
games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild
games-strategy/netpanzer/ChangeLog
games-strategy/netpanzer/files/netpanzer-ded
games-strategy/netpanzer/files/netpanzer.rc

index 0e12ff0a62669fff119c3f22a8e14d09c18a709d..fee617027a621874a5a02d3f84e4265fec02632f 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for games-strategy/heroes3
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/heroes3/ChangeLog,v 1.13 2006/10/24 23:09:12 wolf31o2 Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/heroes3/ChangeLog,v 1.14 2007/03/07 17:28:50 wolf31o2 Exp $
+
+  07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+  heroes3-1.3.1a-r2.ebuild:
+  Change all instances of [ to [[.
 
   24 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org>
   heroes3-1.3.1a-r2.ebuild:
index b80c14c8279436173b54f3db5f813347c7123f34..83382d993756c6d3949c7dffda8295a9222ee60c 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild,v 1.3 2007/01/26 19:44:53 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild,v 1.4 2007/03/07 17:28:50 wolf31o2 Exp $
 
 #      [x] Base Install Required (+4 MB)
 #      [x] Scenarios (+7 MB)
@@ -58,19 +58,19 @@ pkg_setup() {
        use nocd && fullinstall=1
        use sounds && use videos && use maps && fullinstall=1
 
-       [ ${fullinstall} -eq 1 ] \
+       [[ ${fullinstall} -eq 1 ]] \
                && ewarn "The full installation takes about 341 MB of space!"
 
-#      if [ -n "${fullinstall}" ]
+#      if [[ -n "${fullinstall}" ]]
 #      then
 #              langcount=0
 #              for i in ${LINGUAS}
 #              do
 #                      i="${i/_/-}"
-#                      if [ ${i} != "en" ]
+#                      if [[ ${i} != "en" ]]
 #                      then
 #                              let $((++langcount))
-#                              if [ $langcount = 2 ]
+#                              if [[ $langcount = 2 ]]
 #                              then
 #                                      eerror "Heroes3 only supports one localization at once!"
 #                                      die "Localization is only supported when Heroes3 is in a single language!"
@@ -81,7 +81,7 @@ pkg_setup() {
 #              for i in ${LINGUAS}
 #              do
 #                      i="${i/_/-}"
-#                      if [ ${i} != "en" ]
+#                      if [[ ${i} != "en" ]]
 #                      then
 #                              eerror "Full installation (nocd flag or data + video + maps flags) is needed for ${i} language!"
 #                              die "Localization is only supported when Heroes3 is fully locally installed!"
@@ -98,7 +98,7 @@ src_unpack() {
 #      for i in ${LINGUAS}
 #      do
 #              i="${i/_/-}"
-#              if [ ${i} != "en" ]
+#              if [[ ${i} != "en" ]]
 #              then
 #                      mkdir localize
 #                      cd localize
@@ -139,12 +139,12 @@ src_install() {
                fi
        fi
 
-#      if [ -n "${fullinstall}" ]
+#      if [[ -n "${fullinstall}" ]]
 #      then
 #              for i in ${LINGUAS}
 #              do
 #                      i="${i/_/-}"
-#                      if [ ${i} != "en" ]
+#                      if [[ ${i} != "en" ]]
 #                      then
 #                              find "${S}/localize/${i}" -type f | while read xfile
 #                              do
@@ -153,7 +153,8 @@ src_install() {
 #                                      ebegin "Localizing ${file}"
 #                                      xdelta patch "${xfile}" "${Ddir}/${file}" "${Ddir}/${file}.xdp"
 #                                      local retval=$?
-#                                      if [ $retval = 0 ] ; then
+#                                      if [[ $retval = 0 ]]
+#                                      then
 #                                              mv -f  "${Ddir}/${file}.xdp" "${Ddir}/${file}"
 #                                      else
 #                                              rm -f "${Ddir}/${file}.xdp"
index bb51ef9611a6bf7f848f280184c975572e3a9ea7..edfad80e3d37b02bcdcee0248300c68e0e14c80f 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for games-strategy/netpanzer
 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/ChangeLog,v 1.23 2007/02/07 16:45:06 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/ChangeLog,v 1.24 2007/03/07 17:30:56 wolf31o2 Exp $
+
+  07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org> files/netpanzer.rc,
+  files/netpanzer-ded:
+  Change all instances of [ to [[.
 
   07 Feb 2007; Michael Sterrett <mr_bones_@gentoo.org>
   -files/netpanzer-0.8-gcc41.patch,
index 4d8128d15e842d0c88259c687f6eab0d3ffdb7d7..d6dd85193641c5633b3e4a2376eb046151e0dcbd 100644 (file)
@@ -1,9 +1,9 @@
 #!/bin/sh
 
 running=yes
-while [ $running = yes ]; do
+while [[ $running = yes ]] ; do
     /usr/games/bin/netpanzer --game_config=/etc/netpanzer-ded.ini -d $@
-    if [ $? -ge 128 ]; then
+    if [[ $? -ge 128 ]] ; then
         echo "`date`: Restarting server after crash"
         # wait a bit to not blow cpu and logfiles on constant crashs
         sleep 30
index 633290976fe1e1a439628a883d7dd2a08a00b4ba..1261fb5099a3e5176654744cc39a6c0eebd5a040 100644 (file)
@@ -1,7 +1,7 @@
 #!/sbin/runscript
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/files/netpanzer.rc,v 1.2 2007/02/07 09:21:49 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/files/netpanzer.rc,v 1.3 2007/03/07 17:30:56 wolf31o2 Exp $
 
 depend() {
        need net
@@ -16,11 +16,11 @@ start() {
 stop() {
        ebegin "Stopping netpanzer dedicated server"
        local pid=`screen -list | grep netpanzer-ded | awk -F . '{print $1}' | sed -e s/.//`
-       if [ -z "${pid}" ] ; then
+       if [[ -z "${pid}" ]] ; then
                eend 1 "Lost screen session"
        else
                pid=`pstree -p ${pid} | sed -e 's:^.*netpanzer-ded(\([0-9]*\)).*:\1:'`
-               if [ -z "${pid}" ] ; then
+               if [[ -z "${pid}" ]] ; then
                        eend 1 "Lost netpanzer-ded session"
                else
                        kill ${pid}