Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] alternative grimoire layout

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "David C. Haley" <dhaley AT tamsco.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] alternative grimoire layout
  • Date: Wed, 6 Apr 2005 11:52:52 +0400

with this layout would each spell, assuming they don't end up in
unmaintained, only have one mainter assigned to them? What if more than one
user or developer wants to update, maintain, or tweak a spell?

my two cents, just curious.

Regards,
SilverS

On Tue, 05 Apr 2005 19:56:21 -0700
Andrew <afrayedknot AT thefrayedknot.armory.com> wrote:

> I decided to put my money where my mouth is and write some 'proof of
> concept' scripts for the proposed in-repository/grimoire building
> layout change.
>
> Theres one to re-arrange the grimoire based on 'maintainer' in the format
> specified below, and another to revert it back again. There another script
> to re-assemble the grimoire back to its usual form.
>
>
> My in-repository layout is as follows:
>
> grimoire_name/developer AT sourcemage.org/...
> spell1/...
> DETAILS
> section
> spell2/...
> DETAILS
> BUILD
> section
> grimoire_name/sections/section1/...
> FUNCTIONS
> grimoire_name/sections/section2/...
> SECTION2_DETAILS
> MAINTAINER
>
> grimoire_name/...
> FUNCTIONS
> ChangeLog
> libaccount
>
> Basically, spells are moved to a directory based on the developer,
> theres a special developer named 'unmaintained' as a catchall for
> spells with no maintainer. Each spell has a magic file in it called
> 'section' this contains a single line with the name of the section the
> spell belongs to in the on-disk layout.
>
> Theres a 'sections' dir which contains subdirectories, one for each
> 'real' section, in that directory are all the files for that section.
>
> I assume that there are no developers named 'sections' and 'unmaintained'
> in this example, and that there wont be any collisions between grimoire
> level libraries and developer names.
>
> The attached 'adjust_grimoire' script takes two parameters, a grimoire
> to start with, and a target directory, it guesses the maintainer and
> sets up the above structure. The maintainer guessing basically sucks but
> works well enough for this proof of concept. The finished product would
> arrange the grimoire inplace, run p4 integ commands, and the user would
> specify what sections/spells they maintain along with their name in
> some format.
>
> The attached 'build_grimoire' script is the inverse of adjust_grimoire,
> it takes the above format and turns it back into the grimoire layout we
> are familar with (it also removes the 'section' file). A better script
> could make use of symlinks for quick updates and space savings.
>
> Ive run
> adjust_grimoire devel newdevel
> build_grimoire newdevel builtdevel
>
> then
> diff -Naur devel builtdevel
>
> The only difference that diff finds is pixieplus missing from the
> kde-apps section (the spell is currently duplicated in both kde and
> kde-apps sections in the devel grimoire).
>
> Enjoy
>
> -Andrew
>
> --
> __________________________________________________________________________
> |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/ |
> --------------------------------------------------------------------------



Regards,

David C. Haley
Network/Satellite Administrator
Parsons S & J
Baghdad, Iraq
Phone: 972.535.3740
Email: dhaley AT tamsco.com
---
[This E-mail was scanned for viruses by Declude Virus]





Archive powered by MHonArc 2.6.24.

Top of Page