Re: Question on multiple compiler environment
- From: Brooks Moses <bmoses-nospam@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 14:22:32 -0700
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: Mark Westwood
- 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
- Question on multiple compiler environment
- Prev by Date: Re: numeric difference program
- Next by Date: Re: Strange Porting Problem CVF to IVF, requesting help and ideas.
- Previous by thread: Re: Question on multiple compiler environment
- Next by thread: Re: Question on multiple compiler environment
- Index(es):
Relevant Pages
|
|