# 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