# 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:
-# 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)
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!"
# 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!"
# for i in ${LINGUAS}
# do
# i="${i/_/-}"
-# if [ ${i} != "en" ]
+# if [[ ${i} != "en" ]]
# then
# mkdir localize
# cd localize
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
# 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"
# 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,
#!/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
#!/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
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}