Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] possible enhancement

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Andrew <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] possible enhancement
  • Date: Sun, 20 Feb 2005 11:52:30 -0800

Thanks Seth, this pretty much what i was going to suggest; move your
common code to a section or grimoire level FUNCTIONS file, sorcery will
automatically source it for you during the PRE_BUILD->FINAL phase and
then you call the functions however you want.

If/When its found to be used by a significant subset of spells it can
be migrated into sorcery.

-Andrew

On Sun, Feb 20, 2005 at 10:14:54AM -0800, Seth Alan Woolley wrote:
> Make it a grimoire library called build_dir with a mk_build_dir function
> with the first argument being the directory to create, defaulting to
> "build-$SPELL-$VERSION". Also it could have a rm_build_dir function
> that grabbed a global var SEPARATE_BUILD_DIR set by mk_build_dir and
> cleaned it out:
>
> BUILD:
> mk_build_dir &&
> default_build
>
> INSTALL:
> default_install &&
> rm_build_dir
>
> Once the grimoire library stabilizes, it can be moved into a sorcery
> module if it's common and useful. This allows you to test it in the
> grimoire, overlap the grimoire code with the sorcery code, and then
> remove the grimoire library code overlap a while later. Otherwise,
> you'll have integration issues with sorcery being a different version
> than the grimoire.
>
> On Sun, Feb 20, 2005 at 06:08:19PM +0000, Treeve Jelbert wrote:
> > several software packages reccommend creating a build directory first and
> > to
> > do something like
> >
> > mkdir build
> > cd build
> > ../configure
> > make
> >
> >
> > in most cases configure accepts the standard options
> >
> >
> > t would be useful if this situation could be handled by default_build
> >
> > mkdir build
> > cd build
> > default_build BASE=../
> >
> > or even simply
> >
> > default_build BUILD_IN=builddir
> >
> > so that builddir was created automatically
> >
> >
> > Thoughts?
> >
> > --
> > Regards, Treeve
> > _______________________________________________
> > SM-Discuss mailing list
> > SM-Discuss AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-discuss
> >
>
> --
> Seth Alan Woolley [seth at positivism.org], SPAM/UCE is unauthorized
> Key id EF10E21A = 36AD 8A92 8499 8439 E6A8 3724 D437 AF5D EF10 E21A
> http://smgl.positivism.org:11371/pks/lookup?op=get&search=0xEF10E21A
> Security Team Leader Source Mage GNU/Linux http://www.sourcemage.org



> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss


--
__________________________________________________________________________
|Andrew D. Stitt | astitt at sourcemage.org |
|irc: afrayedknot | afrayedknot at t.armory.com |
|aim: thefrayedknot or iteratorplusplus | acedit at armory.com |
|Sorcery Team Lead | ftp://t.armory.com/ |
--------------------------------------------------------------------------

Attachment: pgpJZkEbjo8ag.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page