Closed GoogleCodeExporter closed 8 years ago
I don't know of a way to do this automatically. It could probably be done to
the
Linux build without too much trouble, anyway, with a little sh magic. I think
you're
a linux user, right? I'll forward the request to Arcum for review.
Original comment by Jake.Stine
on 22 Dec 2008 at 12:58
Actually, Jake, if you look closely, he's requesting it for both Linux and
Windows.
I'll take a look. There is a variable in configure.ac called SVNVER that has
the svn
version, and I may be able to just plunk that in the name.
That's when I'm back in Linux, though. firght now I'm in Windows, so I can look
at
cottonvibes dialog changes firsthand. It's easier to get an idea of what to do
from
looking then reading the code...
Original comment by arcum42@gmail.com
on 22 Dec 2008 at 1:11
Ah, ok. Yeah the best guess I have for doing a rev-based filename gen in MSVC
is to
create a post-build step that uses a TortoiseSVN or Subversion tool to rename
the
file. It'd be a real pain in the ass.
Anyone else have any more knowledge / better ideas for it?
Original comment by Jake.Stine
on 22 Dec 2008 at 1:31
Original comment by Jake.Stine
on 22 Dec 2008 at 4:52
For MSVC
http://www.codeproject.com/KB/architecture/svn_visual_studio.aspx?display=PrintA
ll
Original comment by Zeydl...@gmail.com
on 22 Dec 2008 at 5:52
Oh, and it's seems that Gabest is already imported SubWCRev in his plugin.
Original comment by Zeydl...@gmail.com
on 22 Dec 2008 at 6:04
Yes that can be used to inject revision info into the source code of a project,
but
how can I change the output filename? That's a project-level option and as far
as I
know the #defines generates by SubWCRev won't do any good there.
(for the record, I incorporated SubWCRev into SPU2ghz quite a while ago).
Original comment by Jake.Stine
on 22 Dec 2008 at 6:22
I think I might have found a way to bind the revision number into the filename
in
Visual Studio, using SubWCRev and a .vsprops file. I'll put it on my todo list
as
soon as I'm done with my current little code cleanup project.
Original comment by Jake.Stine
on 8 Jan 2009 at 7:17
This has been implemented in full for the Win32 build systems.
Original comment by Jake.Stine
on 8 Feb 2009 at 5:42
Original comment by Jake.Stine
on 17 Feb 2009 at 1:41
Original issue reported on code.google.com by
Zeydl...@gmail.com
on 21 Dec 2008 at 11:10