From: Chris Gianelloni Date: Wed, 7 Mar 2007 17:30:56 +0000 (+0000) Subject: Change all instances of [ to [[. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf9f03868f615b297e490f1b6ba6458eceb28f4a;p=gentoo.git Change all instances of [ to [[. Package-Manager: portage-2.1.2.1 --- diff --git a/games-strategy/heroes3/ChangeLog b/games-strategy/heroes3/ChangeLog index 0e12ff0a6266..fee617027a62 100644 --- a/games-strategy/heroes3/ChangeLog +++ b/games-strategy/heroes3/ChangeLog @@ -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 + heroes3-1.3.1a-r2.ebuild: + Change all instances of [ to [[. 24 Oct 2006; Chris Gianelloni heroes3-1.3.1a-r2.ebuild: diff --git a/games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild b/games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild index b80c14c82794..83382d993756 100644 --- a/games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild +++ b/games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild @@ -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" diff --git a/games-strategy/netpanzer/ChangeLog b/games-strategy/netpanzer/ChangeLog index bb51ef9611a6..edfad80e3d37 100644 --- a/games-strategy/netpanzer/ChangeLog +++ b/games-strategy/netpanzer/ChangeLog @@ -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 files/netpanzer.rc, + files/netpanzer-ded: + Change all instances of [ to [[. 07 Feb 2007; Michael Sterrett -files/netpanzer-0.8-gcc41.patch, diff --git a/games-strategy/netpanzer/files/netpanzer-ded b/games-strategy/netpanzer/files/netpanzer-ded index 4d8128d15e84..d6dd85193641 100644 --- a/games-strategy/netpanzer/files/netpanzer-ded +++ b/games-strategy/netpanzer/files/netpanzer-ded @@ -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 diff --git a/games-strategy/netpanzer/files/netpanzer.rc b/games-strategy/netpanzer/files/netpanzer.rc index 633290976fe1..1261fb5099a3 100644 --- a/games-strategy/netpanzer/files/netpanzer.rc +++ b/games-strategy/netpanzer/files/netpanzer.rc @@ -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}