From: "Andraž 'ruskie' Levstik" <ruskie AT mages.ath.cx>
To: <sm-commit AT lists.ibiblio.org>
Subject: Re: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (b099c7ecab12675653073d070a3b2726071a1538)
Date: Tue, 04 Sep 2007 08:43:53 +0200
On 04:02:53 2007-09-04 George Sherwood <pilot AT beernabeer.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tue, 04 Sep 2007 01:09:51 +0200
> Ladislav Hagara <ladislav.hagara AT unob.cz> wrote:
>
> One of the wonderful things about Sourcemage is that for those users
> that are advanced enough to want some new feature of a library, it is
> very easy to just bump the version on your own system.
>
Actually with quill any user can do it very easily :)
But I agree with Ladislav on this... having STABLE/DEVEL options in spells
would be nicer...
Infact we could have a general function that would produce the required
questions in any case since this is being duplicated alot anyway...
version_pick $SPELLNAME AVAILABLE_BRANCHES
version_pick(){
local spell="$(echo $1 | tr 'a-z' 'A-Z')"
shift 1
# let's always have a DEFAULT branch which points to what's the
# sanest upstream recommened version
config_query_list ${spell}_BRANCH \
"Which branch do you want to use?" \
DEFAULT $@
if grep -q -E "SCM|VCS" <<< $@ ; then
# this needs a bit of a work I think to have it recognize
# that ${spell}_BRANCH is actually a real variable not just a string
if [[ ${spell}_BRANCH == SCM ]] ||
[[ ${spell}_BRANCH == VCS ]] ; then
config_query ${spell}_AUTO \
"Do you want to auto update on every cast/system-update" \
n
fi
fi
}
--
Andraž "ruskie" Levstik
Source Mage GNU/Linux Games grimoire guru
Geek/Hacker/Tinker