[SM-Commit] GIT changes to master grimoire by Pol Vinogradov (b099c7ecab12675653073d070a3b2726071a1538)

"Andraž 'ruskie' Levstik" ruskie at mages.ath.cx
Tue Sep 4 02:43:53 EDT 2007


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

Hacker FAQ: http://www.plethora.net/%7eseebs/faqs/hacker.html
Be sure brain is in gear before engaging mouth.

Key id = F4C1F89C
Key fingerprint = 6FF2 8F20 4C9D DB36 B5B6  F134 884D 72CC F4C1 F89C




More information about the SM-Commit mailing list