Michael Van Canneyt wrote:
On Sun, 20 Sep 2015, Mark Morgan Lloyd wrote:
Michael Van Canneyt wrote:
On Sun, 20 Sep 2015, Mark Morgan Lloyd wrote:
Looking at some projects filed away here, I find I've been
inconsistent so would appreciate it if somebody could say
authoritatively: what types of file should be put in a repository,
and what is regenerated reliably?
Obviously .lpi, .lpr, .lfm and .pas or .pp should be saved, and any
static .inc files.
I presume that anything machine-generated and usually put into the
lib directory shouldn't be stored even if it ends up elsewhere:
.ppu, .o, .a, .res, .or.
What about things like .lrs and .rst?
.rst is also regenerated, no need to store them.
Thanks Michael, it was your comment about ResourceStrings that
reminded me to ask this.
What about .lrs, since it looks as though it's generated from .lfm?
It depends.
For newer lazaruses, .lrs is no longer used, since Lazarus uses the .lfm
files directly for new projects.
If you have {$i something.lrs} in your sources, you'd probably better
still store the .lrs in svn.
I got rid of the .lrs files a long time ago. Just a matter of replacing
{$i something.lrs}
with
{$r something.lfm}
Michael.
Thanks very much, I think I did as well but I'll check. I've got one or
two things that I'm trying to keep running for sufficiently-old versions
of the compiler and IDE that they can generate a GTK1- or NT-compatible
binary, which means carefully avoiding things like frames in the user
interface.
The rationale here is not so much for local use, but because they're of
potential use to a small number of niche hackers and at all costs I want
to avoid giving them cause to grumble because a particular OS or
compiler version is required. I'm talking about the likes of mainframe
programmers here, many of whom have had sufficient time to elevate
curmudgeonliness to an artform :-)
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus