Re: Question on multiple compiler environment



Yes, Subversion has the feature mentioned, look under
Properties/svn:keywords in the documentation. And yes, you can set it
at a directory level and have it applied recursively to all files in
the directory, and in its subdirectories. I use the TortoiseSVN client
which is well documented, but the same facility is available from the
command-line interface.

But what I really want is a way of determining, from the binary, what
compiler flags were used in its creation. I suspect that the only way
of doing this is to get to grips with the autotools and, as one earlier
poster suggested, that looks HARD.

Regards
Mark


Brooks Moses wrote:
Janne Blomqvist wrote:
beliavsky@xxxxxxx wrote:
This method relies on my changing NVERSION manually and on saving old
source codes. I know there exist source control systems such as RCS,
but can one use them to automatically embed version information in an
executable?

In RCS/CVS, you have "variables" like "$Id$" which get expanded to
"$Id: filename revision author etc.$" when committing the file to the
repository. See the co(1) man page for the different keywords you can
use.

So just have something like

character(len=*) :: version = "$Id$"

in your source file.

I'm not sure if more modern version control systems like subversion
have similar keyword expansion features. Wouldn't surprise me.

Subversion also has this, but it has to be specifically enabled (usually
on a per-file basis, though there may be ways to do it for the whole
repository; I don't remember the details).

- Brooks


--
The "bmoses-nospam" address is valid; no unmunging needed.

.



Relevant Pages

  • Re: Source control
    ... > for dotnet projects. ... Subversion. ... Powerful, easy to use, good documentation, scales well. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: CVS or PVCS or Version Control for php project
    ... I would also suggest Subversion, ... Documentation is great, and community is very ... A great Windows GUI client is TortoiseSVN. ... TortoiseSVN docs: ...
    (comp.lang.php)