Re: Question on multiple compiler environment
- From: "Mark Westwood" <markc.westwood@xxxxxxxxx>
- Date: 28 Sep 2006 02:38:23 -0700
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.
.
- Follow-Ups:
- Re: Question on multiple compiler environment
- From: glen herrmannsfeldt
- Re: Question on multiple compiler environment
- From: Steve Lionel
- Re: Question on multiple compiler environment
- References:
- Question on multiple compiler environment
- From: Matthias Möller
- Re: Question on multiple compiler environment
- From: Arjen Markus
- Re: Question on multiple compiler environment
- From: Matthias Möller
- Re: Question on multiple compiler environment
- From: beliavsky
- Re: Question on multiple compiler environment
- From: Janne Blomqvist
- Re: Question on multiple compiler environment
- From: Brooks Moses
- Question on multiple compiler environment
- Prev by Date: Re: comment and IBM xlf
- Next by Date: Re: numeric difference program
- Previous by thread: Re: Question on multiple compiler environment
- Next by thread: Re: Question on multiple compiler environment
- Index(es):
Relevant Pages
|