sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: "Andraž \"ruskie\" Levstik" <ruskie AT mages.ath.cx>
- To: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] xorg-modular check for X11-LIBS
- Date: Wed, 7 Jun 2006 11:30:17 +0200
Andraž "ruskie" Levstik wrote :
> OK I've just commited a PROVIDES file for xorg-libs so
> that now there are 2 providers to check against.
>
> if [[ "$(get_spell_provider $SPELL X11-LIBS)" == "xorg-server" ]] ||
> [[ "$(get_spell_provider $SPELL X11-LIBS)" == "xorg-libs" ]]
> then
> ....
> fi
>
> I'm guessing this might be better to put to a grimoire wide function
> so that it's somewhat transparent to spells with specifics.
>
> basicaly the function would be:
>
> function check_if_xorg_modular()
> {
> if [[ "$(get_spell_provider $SPELL X11-LIBS)" == "xorg-server" ]]
> ||
> [[ "$(get_spell_provider $SPELL X11-LIBS)" == "xorg-libs" ]]
> then
> return 0
> fi
> return 1
> }
>
> That way more provides can be added eventually if needed or removed.
> Example for an extra future provider of X11-LIBS would also be xorg
> spell converted to a profile spell for -modular.
Hmm better name would be check_if_xorg_modular_libs since there
would also be multiple providers or X11-SERVER eventually i.e. xorg as
profile
--
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 = A7A9E461
Key fingerprint = 757E C16B F5B7 DC27 B003 CCED CF95 3A77 A7A9 E461
-
[SM-Discuss] xorg-modular check for X11-LIBS,
Andraž "ruskie" Levstik, 06/07/2006
-
Re: [SM-Discuss] xorg-modular check for X11-LIBS,
Andraž "ruskie" Levstik, 06/07/2006
- Re: [SM-Discuss] xorg-modular check for X11-LIBS, Andraž "ruskie" Levstik, 06/07/2006
-
Re: [SM-Discuss] xorg-modular check for X11-LIBS,
Andraž "ruskie" Levstik, 06/07/2006
Archive powered by MHonArc 2.6.24.