Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] xorg-modular check for X11-LIBS

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "Andraž \"ruskie\" Levstik" <ruskie AT mages.ath.cx>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] xorg-modular check for X11-LIBS
  • Date: Wed, 7 Jun 2006 11:20:18 +0200

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.

--
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





Archive powered by MHonArc 2.6.24.

Top of Page