[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 5174 - trunk/build/generator

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-03-02 07:47:51 CET

Before going hog-wild replacing everything with EZT templates, I wanted to
ask the list about it. My idea was to use the templates for the .dsp files,
.dsw files, and anything else where there is a good chunk of boilerplate
that is needed.

(note that templating doesn't apply the same to the Unix makefiles cuz
 Makefile.in has all the "boilerplate" and build-outputs.mk is just the real
 barebones data)

The advantage that I see is that we're moving from a procedural to a
declarative approach for the output files. Theoretically :-), the templates
are easier to edit. Also note that I've set the template to the right line
endings (altho it seems the output doesn't have it, so I gotta figure out
where they got lost).

After looking at the XML-ish nastiness in gen_vcnet_vcproj.py, I'd much
rather swap out that gunk for a simple template.

Thoughts?

Cheers,
-g

On Sat, Mar 01, 2003 at 11:56:45PM -0600, gstein@tigris.org wrote:
> Author: gstein
> Date: Sat Mar 1 23:56:34 2003
> New Revision: 5174
>
> Added:
> trunk/build/generator/ezt.py
> trunk/build/generator/msvc_dsp.ezt (text, props changed)
> Modified:
> trunk/build/generator/gen_msvc_dsp.py
> Log:
> Begin reimplementation using EZT templates for the .dsp files.
>
> * build/generator/ezt.py: add in the EZT easy templating system. this
> a copy of revision 85 of:
> http://svn.webdav.org/repos/projects/subwiki/trunk/lib/ezt.py
>
> * build/generator/msvc_dsp.ezt: template for .dsp files. the template
> is also set for an EOL style of CRLF. I wasn't sure how sensitive
> MSVC is to spaces/newlines, so this template precisely replicates
> the .dsp that Brandon's code generated [at the cost of a bit of
> readability of the template].
>
> * build/generator/gen_msvc_dsp.py:
> (Generator.write_project): gut this and replace with the generation
> from the msvc_dsp.ezt template.
>...

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 2 07:43:02 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.