summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2007-03-07 17:34:19 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2007-03-07 17:34:19 +0000
commit7b4cc4cf4c689fdefe622ccd7643dec92aca6888 (patch)
tree4becbe3297dea9745a968893b6d1a15b6ca98f06 /games-rpg/nwn-data
parentChange all instances of [ to [[. (diff)
downloadgentoo-2-7b4cc4cf4c689fdefe622ccd7643dec92aca6888.tar.gz
gentoo-2-7b4cc4cf4c689fdefe622ccd7643dec92aca6888.tar.bz2
gentoo-2-7b4cc4cf4c689fdefe622ccd7643dec92aca6888.zip
Change all instances of [ to [[.
(Portage version: 2.1.2.1)
Diffstat (limited to 'games-rpg/nwn-data')
-rw-r--r--games-rpg/nwn-data/ChangeLog6
-rw-r--r--games-rpg/nwn-data/nwn-data-1.29-r1.ebuild48
-rw-r--r--games-rpg/nwn-data/nwn-data-1.29.ebuild12
3 files changed, 35 insertions, 31 deletions
diff --git a/games-rpg/nwn-data/ChangeLog b/games-rpg/nwn-data/ChangeLog
index b06d31202c4c..b5d8e4801f53 100644
--- a/games-rpg/nwn-data/ChangeLog
+++ b/games-rpg/nwn-data/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-rpg/nwn-data
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/ChangeLog,v 1.25 2007/02/02 16:42:01 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/ChangeLog,v 1.26 2007/03/07 17:34:19 wolf31o2 Exp $
+
+ 07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org> nwn-data-1.29.ebuild,
+ nwn-data-1.29-r1.ebuild:
+ Change all instances of [ to [[.
02 Feb 2007; Chris Gianelloni <wolf31o2@gentoo.org>
nwn-data-1.29-r1.ebuild:
diff --git a/games-rpg/nwn-data/nwn-data-1.29-r1.ebuild b/games-rpg/nwn-data/nwn-data-1.29-r1.ebuild
index 458a05780293..6f93ff10443e 100644
--- a/games-rpg/nwn-data/nwn-data-1.29-r1.ebuild
+++ b/games-rpg/nwn-data/nwn-data-1.29-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/nwn-data-1.29-r1.ebuild,v 1.9 2007/02/22 05:29:30 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/nwn-data-1.29-r1.ebuild,v 1.10 2007/03/07 17:34:19 wolf31o2 Exp $
inherit eutils games
@@ -72,34 +72,34 @@ NWN_SET=
get_nwn_set() {
# First we check to see if we have CD_ROOT defined already. If we do,
# this will make our lives so much easier.
- if [ -n "${CD_ROOT}" ]
+ if [[ -n "${CD_ROOT}" ]]
then
- if [ -f "${CD_ROOT}"/KingmakerSetup.exe ]
+ if [[ -f "${CD_ROOT}"/KingmakerSetup.exe ]]
then
NWN_SET="diamond_dvd"
einfo "Neverwinter Nights Diamond DVD found..."
- elif [ -f "${CD_ROOT}"/ArcadeInstallNWNXP213f.EXE ]
+ elif [[ -f "${CD_ROOT}"/ArcadeInstallNWNXP213f.EXE ]]
then
NWN_SET="platinum_cd"
einfo "Neverwinter Nights Platinum DVD/CD set found..."
- elif [ -f "${CD_ROOT}"/ArcadeInstallNWN109.exe ]
+ elif [[ -f "${CD_ROOT}"/ArcadeInstallNWN109.exe ]]
then
NWN_SET="original_cd"
einfo "Neverwinter Nights Original/Deluxe CD set found..."
fi
# Now we check to see if we have CD_ROOT_1 set, which means we have a CD
# set, or even a DVD set.
- elif [ -n "${CD_ROOT_1}" ]
+ elif [[ -n "${CD_ROOT_1}" ]]
then
- if [ -f "${CD_ROOT_1}"/KingmakerSetup.exe ]
+ if [[ -f "${CD_ROOT_1}"/KingmakerSetup.exe ]]
then
NWN_SET="diamond_dvd"
einfo "Neverwinter Nights Diamond DVD found..."
- elif [ -f "${CD_ROOT_1}"/ArcadeInstallNWNXP213f.EXE ]
+ elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWNXP213f.EXE ]]
then
NWN_SET="platinum_cd"
einfo "Neverwinter Nights Platinum DVD/CD set found..."
- elif [ -f "${CD_ROOT_1}"/ArcadeInstallNWN109.exe ]
+ elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWN109.exe ]]
then
NWN_SET="original_cd"
einfo "Neverwinter Nights Original/Deluxe CD set found..."
@@ -110,15 +110,15 @@ get_nwn_set() {
local mline=
for mline in $(mount | egrep -e '(iso|cdrom)' | awk '{print $3}')
do
- if [ -f "${mline}"/KingmakerSetup.exe ]
+ if [[ -f "${mline}"/KingmakerSetup.exe ]]
then
NWN_SET="diamond_dvd"
einfo "Neverwinter Nights Diamond DVD found..."
- elif [ -f "${mline}"/ArcadeInstallNWNXP213f.EXE ]
+ elif [[ -f "${mline}"/ArcadeInstallNWNXP213f.EXE ]]
then
NWN_SET="platinum_cd"
einfo "Neverwinter Nights Platinum DVD/CD set found..."
- elif [ -f "${mline}"/ArcadeInstallNWN109.exe ]
+ elif [[ -f "${mline}"/ArcadeInstallNWN109.exe ]]
then
NWN_SET="original_cd"
einfo "Neverwinter Nights Original/Original CD set found..."
@@ -128,7 +128,7 @@ get_nwn_set() {
}
get_cd_set() {
- while `[ -z "${NWN_SET}" ]`
+ while `[[ -z "${NWN_SET}" ]]`
do
echo "Please insert your first Neverwinter Nights CD/DVD into your drive and"
echo "press any key to continue"
@@ -242,7 +242,7 @@ src_unpack() {
rm -rf NWN_Platinum/
# If we have the DVD, we're done. If not, we need to switch CDs and
# unpack the files on them.
- if [ `du -b "${CDROM_ROOT}"/Data_Shared.zip` -lt 700000000 ]
+ if [[ `du -b "${CDROM_ROOT}"/Data_Shared.zip` -lt 700000000 ]]
then
cdrom_load_next_cd
einfo "Unpacking files..."
@@ -347,20 +347,20 @@ src_unpack() {
for a in ${A}
do
currentlocale=""
- if [ -z ${a/*german*/} ]
+ if [[ -z ${a/*german*/} ]]
then
currentlocale=de
- elif [ -z ${a/*spanish*/} ]
+ elif [[ -z ${a/*spanish*/} ]]
then
currentlocale=es
- elif [ -z ${a/*italian*/} ]
+ elif [[ -z ${a/*italian*/} ]]
then
currentlocale=it
- elif [ -z ${a/*french*/} ]
+ elif [[ -z ${a/*french*/} ]]
then
currentlocale=fr
fi
- if [ -n "$currentlocale" ]
+ if [[ -n "$currentlocale" ]]
then
touch ".metadata/linguas_$currentlocale"
mkdir -p $currentlocale
@@ -397,7 +397,7 @@ else \
p=${HOME}/.nwn \
for i in ${LINGUAS} \
do \
- if [ -z "${LANG}" -a -r ".metadata/linguas_$i" -a -d "$i" ] \
+ if [[ -z "${LANG}" -a -r ".metadata/linguas_$i" -a -d "$i" ]] \
then \
LANG=$i \
p=${HOME}/.nwn \
@@ -454,12 +454,12 @@ src_install() {
cd "${Ddir}"
for d in ambient data dmvault hak localvault movies music override portraits
do
- if [ -d ${d} ]
+ if [[ -d ${d} ]]
then
( cd ${d}
for f in $(find . -name '*.*') ; do
lcf=$(echo ${f} | tr [:upper:] [:lower:])
- if [ ${f} != ${lcf} ] && [ -f ${f} ]
+ if [[ ${f} != ${lcf} ]] && [[ -f ${f} ]]
then
mv ${f} ${lcf}
fi
@@ -468,11 +468,11 @@ src_install() {
done
if ! use sou && ! use hou && use nowin
then
- if [ -f data/patch.bif ]
+ if [[ -f data/patch.bif ]]
then
chmod a-x data/patch.bif
fi
- if [ -f patch.key ]
+ if [[ -f patch.key ]]
then
chmod a-x patch.key
fi
diff --git a/games-rpg/nwn-data/nwn-data-1.29.ebuild b/games-rpg/nwn-data/nwn-data-1.29.ebuild
index c8510fa6558f..85b775e8923d 100644
--- a/games-rpg/nwn-data/nwn-data-1.29.ebuild
+++ b/games-rpg/nwn-data/nwn-data-1.29.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-rpg/nwn-data/nwn-data-1.29.ebuild,v 1.21 2007/01/26 19:58:33 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-data/nwn-data-1.29.ebuild,v 1.22 2007/03/07 17:34:19 wolf31o2 Exp $
inherit eutils games
@@ -96,7 +96,7 @@ src_unpack() {
rm -rf override/*
# the following is so ugly, please pretend it doesnt exist
declare -a Aarray=(${A})
- use nowin && if [ "${#Aarray[*]}" == "4" ]
+ use nowin && if [[ "${#Aarray[*]}" == "4" ]]
then
unpack ${Aarray[1]}
fi
@@ -124,7 +124,7 @@ src_unpack() {
rm -f data/patch.bif patch.key
sed -i -e '\:^./nwmain .*:i \
-if [[ -f ./nwmouse.so ]]; then \
+if [[ -f ./nwmouse.so ]] ; then \
export XCURSOR_PATH="$(pwd)" \
export XCURSOR_THEME=nwmouse \
export LD_PRELOAD=./nwmouse.so:$LD_PRELOAD \
@@ -151,12 +151,12 @@ src_install() {
cd "${Ddir}"
for d in ambient data dmvault hak localvault music override portraits
do
- if [ -d ${d} ]
+ if [[ -d ${d} ]]
then
cd ${d}
for f in $(find . -name '*.*') ; do
lcf=$(echo ${f} | tr [:upper:] [:lower:])
- if [ ${f} != ${lcf} ] && [ -f ${f} ]
+ if [[ ${f} != ${lcf} ]] && [[ -f ${f} ]]
then
mv ${f} $(echo ${f} | tr [:upper:] [:lower:])
fi