[Rant] A question of approach
Xavier Shay
xavier.shay at advatel.com.au
Sun Oct 1 19:17:17 EDT 2006
Could you have default steps, and then allow the customization through
generator parameters?
For example:
gen Latex, :step1 => CustomStep1.new,
:step2 => CustomStep2.new,
:build_manager => CustomBuildManager.new
If this does not address your problem, could you please rephrase it or
give an example of what you would need? I'm not familiar with Latex
transformation. If you can maybe post how you are calling one of you
current generators (if you're allowed) and which part you would like to
customize?
> Are any of the current Rant generators structured like
> this
To a limited extent the csharp one is (I'm beginning to soung like a
broken record...).
I uses a CompilerAdapter to perform the actual compilation (in
rant/csharp). You can specify your own by giving the compiler option. I
use this in my own projects to support Csc1.1 compiling, eg:
compiler11 = CscCompiler.new('path/to/csc/1.1')
gen Csharp, 'outfile', :sources => sys["**/*.cs"], :compiler =>
compiler11
This approach could be extended to allow multiple build steps.
Xavier
> -----Original Message-----
> From: make-cafe-bounces at rubyforge.org
> [mailto:make-cafe-bounces at rubyforge.org] On Behalf Of Russel Winder
> Sent: Saturday, 30 September 2006 5:59 PM
> To: Rant Users
> Subject: [Rant] A question of approach
>
> The LaTeX tool chain has some serious oddities and many
> possibilities for achieving any transformation from source to
> target. SCons and Waf handle this by having "builders" that
> are parameterized but in a way that is open to change by the
> user. that I can use as paradigms for the LaTeX "builder" for Rant?
>
> (Currently, I have a number of functions in a module with no
> parameterization -- just the commands I need -- but this
> doesn't seem very Rant-like.)
>
> --
> Russel.
> ====================================================
> Dr Russel Winder +44 20 7585 2200
> 41 Buckmaster Road +44 7770 465 077
> London SW11 1EN, UK russel at russel.org.uk
>
>
More information about the make-cafe
mailing list