Skip to Content.
Sympa Menu

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

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 (6c4f444f430888487896329a248ab7ca458b8ad2)
  • Date: Tue, 13 Jan 2009 09:32:22 -0600

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

scripts/spellcaster.sh | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)

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

scripts/spellcaster.sh: only download when needed

Don't download sorcery or grimoire tarballs if they are already present
in the build directory.

diff --git a/scripts/spellcaster.sh b/scripts/spellcaster.sh
index c3d2761..31b0af3 100755
--- a/scripts/spellcaster.sh
+++ b/scripts/spellcaster.sh
@@ -372,11 +372,14 @@ function setup_sys() {
msg "Running add-sauce.sh on SYSDIR"
"$MYDIR"/add-sauce.sh -o -s "$SYSDIR"

- # download sorcery source
- (
- cd "$SPOOL"
- wget http://download.sourcemage.org/sorcery/$SORCERY
- )
+ # download sorcery source if we don't already have it
+ if [[ ! -f "$SPOOL"/$SORCERY ]]
+ then
+ (
+ cd "$SPOOL"
+ wget http://download.sourcemage.org/sorcery/$SORCERY
+ )
+ fi

# unpack sorcery into TARGET
msg "Installing sorcery in SYSDIR"
@@ -391,11 +394,16 @@ function setup_sys() {
./install "$installdir"
popd &> /dev/null

+ # download grimoire source if we don't already have it
+ if [[ ! -f "$SPOOL"/$stable ]]
+ then
+ (
+ cd "$SPOOL"
+ wget http://download.sourcemage.org/codex/$stable
+ )
+ fi
+
# install the stable grimoire used for build into SYSDIR
- (
- cd "$SPOOL"
- wget http://download.sourcemage.org/codex/$stable
- )
msg "Installing grimoire ${stable%.tar.bz2} into SYSDIR"
[[ -d "$syscodex" ]] || mkdir -p $syscodex &&
tar jxf "$SPOOL"/$stable -C "$syscodex"/ &&



  • [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (6c4f444f430888487896329a248ab7ca458b8ad2), Justin Boffemmyer, 01/13/2009

Archive powered by MHonArc 2.6.24.

Top of Page