Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (ba1db8e9468195cf0dfb1f0674dcaa75eec289c3)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Justin Boffemmyer <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (ba1db8e9468195cf0dfb1f0674dcaa75eec289c3)
  • Date: Fri, 21 Nov 2008 10:38:05 -0600

GIT changes to test cauldron by Justin Boffemmyer <flux AT sourcemage.org>:

scripts/spellcaster.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ba1db8e9468195cf0dfb1f0674dcaa75eec289c3
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

scripts/spellcaster.sh: better variable assignment

Quoted the arguments to the variables to ensure that they are assigned
properly (paranoia), and also made TYPE able to be configured as an
environment variable in addition to being passed as an argument of the
script.

diff --git a/scripts/spellcaster.sh b/scripts/spellcaster.sh
index b9e2d2b..255ae35 100755
--- a/scripts/spellcaster.sh
+++ b/scripts/spellcaster.sh
@@ -68,11 +68,11 @@ then
fi

[[ $# -lt 1 ]] && usage
-TARGET=$1
+TARGET="$1"
shift

-TYPE="x86"
[[ $# -gt 0 ]] && TYPE="$1"
+TYPE="${TYPE:-x86}"

export rspells="rspells.$TYPE"
export ospells="ospells.$TYPE"



  • [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (ba1db8e9468195cf0dfb1f0674dcaa75eec289c3), Justin Boffemmyer, 11/21/2008

Archive powered by MHonArc 2.6.24.

Top of Page