Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire]Re: [SM-Sorcery] PREPARE (Was: k18n)

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Ryan Abrams <rabrams AT sourcemage.org>
  • To: Jason Flatt <jasonflatt AT wizard.com>
  • Cc: Nick Jennings <nkj AT namodn.com>, sm-sorcery AT lists.ibiblio.org, sm-grimoire AT lists.ibiblio.org
  • Subject: Re: [SM-Grimoire]Re: [SM-Sorcery] PREPARE (Was: k18n)
  • Date: Mon, 7 Oct 2002 07:17:48 -0500

Thats pretty close.

The best example I can think of for PREPARE is the k18n spell.

Currently it determines the tarball to grab based on a menu that is called in the DETAILS file.

This has the unfortunate effect of making the menu pop up when doing a gaze search.

the PREPARE file allows a guru to enhance the values in the DETAILS file at the time of casting (such as defining extra variables and such).

the CONFIGURE file does what it always does... configures the compiled features, etc.

NOTE: PREPARE does not /replace/ DETAILS. It is simply run before it in a cast. so any values in DETAILS /will/ overwrite same named variables in PREPARE. So if you want to specify the version in prepare, you should call it PRE_VERSION, and then make the details say VERSION=$PRE_VERSION or something.

But yeah, PREPARE configures the spell. CONFIGURE configures the actually installed application/whatever.

And Nick, please correct anything in here that is wrong. This is my "best educated guess" based on our previous conversations before it was implemented.

-Ryan

On Sunday, October 6, 2002, at 10:43 PM, Jason Flatt wrote:

On Sunday 06 October 2002 05:16 pm, Nick Jennings wrote:
Oh, that reminds me. Does the maintainer of this spell know about
this new feature?

BTW - It's not PRE_DETAILS, it's PREPARE.

Basically, it will be run before DETAILS everytime a spell is to be
cast. (Not during gaze though).



I'm assuming that, based on your message, CONFIGURE is run after DETAILS.
When is DEPENDS run, and where can I find the proper order of files
run/accessed? Also, is there a way to modify DEPENDS based on user input
from a PREPARE or CONFIGURE?

Basically, I would use PREPARE when I wanted to provide for modifications to
the spell, and CONFIGURE when I wanted to provide for modifications to the
package. Am I correct?


--
Jason Flatt
Section maintainer for printer
E-mail (remove the spaces): jasonflatt @ wizard . com
E-mail (remove the spaces): jflatt @ sourcemage . org
IRC: Oadae

_______________________________________________
SM-Grimoire mailing list
SM-Grimoire AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/sm-grimoire





Archive powered by MHonArc 2.6.24.

Top of Page