From 0ff34655768f02127041b9d40d5d9812a5eee06b Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Wed, 7 Mar 2007 16:57:59 +0000 Subject: Change all instances of [ to [[. Package-Manager: portage-2.1.2.1 --- games-fps/blackshades-cvs/ChangeLog | 8 ++++++-- .../blackshades-cvs/blackshades-cvs-20031110-r1.ebuild | 6 +++--- games-fps/cube/ChangeLog | 5 ++++- games-fps/cube/cube-20040522.ebuild | 8 ++++---- games-fps/duke3d/ChangeLog | 8 ++++++-- games-fps/duke3d/duke3d-20040817-r1.ebuild | 8 ++++---- games-fps/duke3d/duke3d-20040817.ebuild | 8 ++++---- games-fps/quake3-bin/ChangeLog | 7 +++++-- games-fps/quake3-bin/files/q3ded.rc | 6 +++--- games-fps/ttyquake/ChangeLog | 5 ++++- games-fps/ttyquake/files/ttyquake | 4 ++-- games-fps/ut2003-bonuspack-epic/ChangeLog | 5 ++++- games-fps/ut2003-bonuspack-epic/files/epic-installer | 2 +- games-fps/ut2003-demo/ChangeLog | 7 +++++-- games-fps/ut2003-demo/files/results.sh | 4 ++-- games-fps/ut2003/ChangeLog | 5 ++++- games-fps/ut2003/ut2003-2225-r4.ebuild | 14 +++++++------- 17 files changed, 68 insertions(+), 42 deletions(-) diff --git a/games-fps/blackshades-cvs/ChangeLog b/games-fps/blackshades-cvs/ChangeLog index f7e6201bd0cf..ceda756d9518 100644 --- a/games-fps/blackshades-cvs/ChangeLog +++ b/games-fps/blackshades-cvs/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-fps/blackshades-cvs -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/blackshades-cvs/ChangeLog,v 1.13 2006/12/06 20:18:12 wolf31o2 Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/blackshades-cvs/ChangeLog,v 1.14 2007/03/07 16:51:30 wolf31o2 Exp $ + + 07 Mar 2007; Chris Gianelloni + blackshades-cvs-20031110-r1.ebuild: + Change all instances of [ to [[. 06 Dec 2006; Chris Gianelloni blackshades-cvs-20031110-r1.ebuild: diff --git a/games-fps/blackshades-cvs/blackshades-cvs-20031110-r1.ebuild b/games-fps/blackshades-cvs/blackshades-cvs-20031110-r1.ebuild index ce99258d104e..1d599aa3eb64 100644 --- a/games-fps/blackshades-cvs/blackshades-cvs-20031110-r1.ebuild +++ b/games-fps/blackshades-cvs/blackshades-cvs-20031110-r1.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-fps/blackshades-cvs/blackshades-cvs-20031110-r1.ebuild,v 1.3 2006/12/06 20:18:12 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/blackshades-cvs/blackshades-cvs-20031110-r1.ebuild,v 1.4 2007/03/07 16:51:30 wolf31o2 Exp $ #ECVS_PASS="anonymous" #ECVS_SERVER="icculus.org:/cvs/cvsroot" @@ -28,7 +28,7 @@ DEPEND="virtual/opengl S=${WORKDIR}/${ECVS_MODULE} src_unpack() { - if [ -z "${ECVS_SERVER}" ] ; then + if [[ -z "${ECVS_SERVER}" ]] ; then unpack blackshades-${PV}.tar.bz2 else cvs_src_unpack diff --git a/games-fps/cube/ChangeLog b/games-fps/cube/ChangeLog index 5ac0f2c29c14..e5e7bbefd2dd 100644 --- a/games-fps/cube/ChangeLog +++ b/games-fps/cube/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-fps/cube # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/cube/ChangeLog,v 1.16 2007/02/21 23:38:28 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/cube/ChangeLog,v 1.17 2007/03/07 16:52:07 wolf31o2 Exp $ + + 07 Mar 2007; Chris Gianelloni cube-20040522.ebuild: + Change all instances of [ to [[. 21 Feb 2007; Piotr Jaroszyński ChangeLog: Transition to Manifest2. diff --git a/games-fps/cube/cube-20040522.ebuild b/games-fps/cube/cube-20040522.ebuild index 9587d0d48e33..7ff0568da4c5 100644 --- a/games-fps/cube/cube-20040522.ebuild +++ b/games-fps/cube/cube-20040522.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-fps/cube/cube-20040522.ebuild,v 1.9 2006/12/06 17:20:15 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/cube/cube-20040522.ebuild,v 1.10 2007/03/07 16:52:07 wolf31o2 Exp $ inherit eutils flag-o-matic games @@ -66,10 +66,10 @@ src_compile() { src_install() { dogamesbin source/src/cube_{client,server} || die "dogamesbin failed" exeinto "${GAMES_LIBDIR}/${PN}" - if [ "${ARCH}" == "x86" ] ; then + if [[ "${ARCH}" == "x86" ]] ; then newexe bin_unix/linux_client cube_client || die "newexe failed" newexe bin_unix/linux_server cube_server || die "newexe failed" - elif [ "${ARCH}" == "ppc" ] ; then + elif [[ "${ARCH}" == "ppc" ]] ; then newexe bin_unix/ppc_linux_client cube_client || die "newexe failed" newexe bin_unix/ppc_linux_server cube_server || die "newexe failed" fi diff --git a/games-fps/duke3d/ChangeLog b/games-fps/duke3d/ChangeLog index a8307df8d46f..589c97edf833 100644 --- a/games-fps/duke3d/ChangeLog +++ b/games-fps/duke3d/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-fps/duke3d -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.24 2006/12/24 11:30:56 tupone Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.25 2007/03/07 16:52:42 wolf31o2 Exp $ + + 07 Mar 2007; Chris Gianelloni + duke3d-20040817.ebuild, duke3d-20040817-r1.ebuild: + Change all instances of [ to [[. 24 Dec 2006; duke3d-20040817-r1.ebuild: Test for perl build with ithreads use flags. Bug #80999 by Alan Grimes diff --git a/games-fps/duke3d/duke3d-20040817-r1.ebuild b/games-fps/duke3d/duke3d-20040817-r1.ebuild index 446059ce750f..b564bf56ce03 100644 --- a/games-fps/duke3d/duke3d-20040817-r1.ebuild +++ b/games-fps/duke3d/duke3d-20040817-r1.ebuild @@ -1,10 +1,10 @@ -# 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-fps/duke3d/duke3d-20040817-r1.ebuild,v 1.3 2006/12/24 11:30:56 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/duke3d-20040817-r1.ebuild,v 1.4 2007/03/07 16:52:42 wolf31o2 Exp $ fromcvs=0 ECVS_MODULE="duke3d" -if [ ${fromcvs} -eq 1 ] ; then +if [[ ${fromcvs} -eq 1 ]] ; then ECVS_PASS="anonymous" ECVS_SERVER="icculus.org:/cvs/cvsroot" inherit cvs eutils flag-o-matic games @@ -43,7 +43,7 @@ pkg_setup() { } src_unpack() { - if [ ${fromcvs} -eq 1 ] ; then + if [[ ${fromcvs} -eq 1 ]] ; then cvs_src_unpack cd duke3d/source ECVS_MODULE="buildengine" diff --git a/games-fps/duke3d/duke3d-20040817.ebuild b/games-fps/duke3d/duke3d-20040817.ebuild index 301f9fc6f7f5..22d2a103f8cc 100644 --- a/games-fps/duke3d/duke3d-20040817.ebuild +++ b/games-fps/duke3d/duke3d-20040817.ebuild @@ -1,10 +1,10 @@ -# 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-fps/duke3d/duke3d-20040817.ebuild,v 1.9 2006/09/08 04:57:34 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/duke3d-20040817.ebuild,v 1.10 2007/03/07 16:52:42 wolf31o2 Exp $ fromcvs=0 ECVS_MODULE="duke3d" -if [ ${fromcvs} -eq 1 ] ; then +if [[ ${fromcvs} -eq 1 ]] ; then ECVS_PASS="anonymous" ECVS_SERVER="icculus.org:/cvs/cvsroot" inherit cvs eutils flag-o-matic games @@ -35,7 +35,7 @@ S="${WORKDIR}/${ECVS_MODULE}" use_tf() { useq ${1} && echo "true" || echo "false"; } src_unpack() { - if [ ${fromcvs} -eq 1 ] ; then + if [[ ${fromcvs} -eq 1 ]] ; then cvs_src_unpack cd duke3d/source ECVS_MODULE="buildengine" diff --git a/games-fps/quake3-bin/ChangeLog b/games-fps/quake3-bin/ChangeLog index a47b868c1364..f32f1e55b2d3 100644 --- a/games-fps/quake3-bin/ChangeLog +++ b/games-fps/quake3-bin/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-fps/quake3-bin -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/ChangeLog,v 1.22 2006/10/25 16:03:24 wolf31o2 Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/ChangeLog,v 1.23 2007/03/07 16:53:48 wolf31o2 Exp $ + + 07 Mar 2007; Chris Gianelloni files/q3ded.rc: + Change all instances of [ to [[. 25 Oct 2006; Chris Gianelloni quake3-bin-1.32c-r1.ebuild: diff --git a/games-fps/quake3-bin/files/q3ded.rc b/games-fps/quake3-bin/files/q3ded.rc index ee02531f6aa4..cf909bebcbdf 100644 --- a/games-fps/quake3-bin/files/q3ded.rc +++ b/games-fps/quake3-bin/files/q3ded.rc @@ -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/games-fps/quake3-bin/files/q3ded.rc,v 1.1 2005/10/25 00:38:03 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/files/q3ded.rc,v 1.2 2007/03/07 16:53:48 wolf31o2 Exp $ depend() { need net @@ -16,12 +16,12 @@ start() { stop() { ebegin "Stopping Quake3 dedicated server" local pid=`screen -list | grep q3ded-bin | 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:^.*q3ded-bin::'` pid=${pid:1:${#pid}-2} - if [ -z "${pid}" ] ; then + if [[ -z "${pid}" ]] ; then eend 1 "Lost q3ded-bin session" else kill ${pid} diff --git a/games-fps/ttyquake/ChangeLog b/games-fps/ttyquake/ChangeLog index 67f24ce1b519..399218c233ac 100644 --- a/games-fps/ttyquake/ChangeLog +++ b/games-fps/ttyquake/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-fps/ttyquake # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/ttyquake/ChangeLog,v 1.7 2007/02/22 00:35:00 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/ttyquake/ChangeLog,v 1.8 2007/03/07 16:54:51 wolf31o2 Exp $ + + 07 Mar 2007; Chris Gianelloni files/ttyquake: + Change all instances of [ to [[. 22 Feb 2007; Piotr Jaroszyński ChangeLog: Transition to Manifest2. diff --git a/games-fps/ttyquake/files/ttyquake b/games-fps/ttyquake/files/ttyquake index e43cf8eb43c0..32249b31b707 100644 --- a/games-fps/ttyquake/files/ttyquake +++ b/games-fps/ttyquake/files/ttyquake @@ -2,7 +2,7 @@ DISPLAY= export LD_LIBRARY_PATH=GENTOO_LIBDIR:${LD_LIBRARY_PATH} -if [ `whoami` = "root" ];then +if [[ `whoami` = "root" ]] ;then echo "***********************************" echo "* You can't run ttyquake as root. *" echo "* Didn't you read the damn README *" @@ -11,7 +11,7 @@ if [ `whoami` = "root" ];then exit fi -if [ -u GAMES_BINDIR/squake ];then +if [[ -u GAMES_BINDIR/squake ]] ;then echo "**********************************" echo "* /squake is setuid. ttyquake *" echo "* won't work unless you turn off *" diff --git a/games-fps/ut2003-bonuspack-epic/ChangeLog b/games-fps/ut2003-bonuspack-epic/ChangeLog index b6fb052462e4..7568e2743cb9 100644 --- a/games-fps/ut2003-bonuspack-epic/ChangeLog +++ b/games-fps/ut2003-bonuspack-epic/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-fps/ut2003-bonuspack-epic # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-bonuspack-epic/ChangeLog,v 1.14 2007/02/22 01:00:57 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-bonuspack-epic/ChangeLog,v 1.15 2007/03/07 16:55:21 wolf31o2 Exp $ + + 07 Mar 2007; Chris Gianelloni files/epic-installer: + Change all instances of [ to [[. 22 Feb 2007; Piotr Jaroszyński ChangeLog: Transition to Manifest2. diff --git a/games-fps/ut2003-bonuspack-epic/files/epic-installer b/games-fps/ut2003-bonuspack-epic/files/epic-installer index 5c498b1bc567..a8c35aa0c751 100644 --- a/games-fps/ut2003-bonuspack-epic/files/epic-installer +++ b/games-fps/ut2003-bonuspack-epic/files/epic-installer @@ -1,6 +1,6 @@ #!/bin/bash -if [ -d $HOME/.ut2003/System ]; then +if [[ -d $HOME/.ut2003/System ]] ; then cd "$HOME/.ut2003/System" echo "Editing UT2003.ini in $PWD" cat >> UT2003.ini < files/results.sh: + Change all instances of [ to [[. 14 Nov 2006; Chris Gianelloni ut2003-demo-2206-r3.ebuild: diff --git a/games-fps/ut2003-demo/files/results.sh b/games-fps/ut2003-demo/files/results.sh index 6810f4dbc805..a74cf909c9ad 100644 --- a/games-fps/ut2003-demo/files/results.sh +++ b/games-fps/ut2003-demo/files/results.sh @@ -2,7 +2,7 @@ # Written by phoen][x , Sep/21/2002 # Modifications, enhancements or bugs? Contact games@gentoo.org -[ -z "${1}" ] \ +[[ -z "${1}" ]] \ && FILE="${HOME}/.ut2003/Benchmark/bench.log" \ || FILE="${1}" @@ -20,7 +20,7 @@ FB_MAX_COUNT=0 while read LINE ; do CURLINE=`expr $CURLINE + 1` - if [ ${CURLINE} -eq 1 ] ; then + if [[ ${CURLINE} -eq 1 ]] ; then echo ">> Results of the UT2003-demo benchmark" echo ">> Created on ${LINE}" continue diff --git a/games-fps/ut2003/ChangeLog b/games-fps/ut2003/ChangeLog index 564cf758b3d2..7fd8cdc9619c 100644 --- a/games-fps/ut2003/ChangeLog +++ b/games-fps/ut2003/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for games-fps/ut2003 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003/ChangeLog,v 1.42 2007/02/22 00:41:13 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003/ChangeLog,v 1.43 2007/03/07 16:57:59 wolf31o2 Exp $ + + 07 Mar 2007; Chris Gianelloni ut2003-2225-r4.ebuild: + Change all instances of [ to [[. 22 Feb 2007; Piotr Jaroszyński ChangeLog: Transition to Manifest2. diff --git a/games-fps/ut2003/ut2003-2225-r4.ebuild b/games-fps/ut2003/ut2003-2225-r4.ebuild index 6c95f396f700..457cd4b7a9b2 100644 --- a/games-fps/ut2003/ut2003-2225-r4.ebuild +++ b/games-fps/ut2003/ut2003-2225-r4.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-fps/ut2003/ut2003-2225-r4.ebuild,v 1.10 2006/10/03 20:25:01 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003/ut2003-2225-r4.ebuild,v 1.11 2007/03/07 16:57:59 wolf31o2 Exp $ inherit eutils games @@ -48,12 +48,12 @@ pkg_postinst() { # here is where we check for the existence of a cdkey... # if we don't find one, we ask the user for it - if [ -f ${dir}/System/cdkey ]; then + if [[ -f ${dir}/System/cdkey ]] ; then einfo "A cdkey file is already present in ${dir}/System" else ewarn "You MUST run this before playing the game:" ewarn "emerge --config =${CATEGORY}/${PF}" - ewarn "That way you can [re]enter your cdkey." + ewarn "That way you can (re)enter your cdkey." fi echo einfo "To play the game run:" @@ -82,11 +82,11 @@ pkg_config() { read CDKEY1 einfo "Please re-enter your CD key:" read CDKEY2 - if [ "$CDKEY1" == "" ] ; then + if [[ "${CDKEY1}" == "" ]] ; then echo "You entered a blank CD key. Try again." else - if [ "$CDKEY1" == "$CDKEY2" ] ; then - echo "$CDKEY1" | tr a-z A-Z > ${dir}/System/cdkey + if [[ "${CDKEY1}" == "${CDKEY2}" ]] ; then + echo "${CDKEY1}" | tr a-z A-Z > ${dir}/System/cdkey einfo "Thank you!" chown games:games ${dir}/System/cdkey break -- cgit v1.2.3-65-gdbad