You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ca...@curdes.com on 2006/11/08 16:11:32 UTC
version number in source ASM
I'm trying to put the version number into my source code, but it's .asm not c. I have found the instructions for c, obviously, but nothing for asm. Any ideas?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: version number in source ASM
Posted by Kevin Grover <ko...@gmail.com>.
You have many options. The results are similar for all langes
In the past, I have used Python and PHP. For example, I would have a file
called version.py.php
That contained
#!/usr/env/bin python
''' Version information for XXX application'''
__author__ = "Me"
__version__ = "<?php exec('svnversion -n')?>"
Then I run
php version.py.php > version.py
in my makefile
Then, I changed it to just have a Makefile generate it. It works on WIndows
also if you have a good version of make (an some other unix like utils)
Or, you can use substitute-type command. TortoiseSVN comes with one that
replaces magic variables.
You could write a batch / shell script to generate the file
#!/bin/sh
echo "SOME ASM VARIABLE DEFINITIONS "$(svnversion) > version.a
or, in Windows
: I can do it, but the bizarre syntax of Windows Batch file eludes me now.
If you show us an example of what you want and some details, it might prove
beneficial
- kevin
On 11/8/06, cafahl@curdes.com <ca...@curdes.com> wrote:
>
> I'm trying to put the version number into my source code, but it's .asm
> not c. I have found the instructions for c, obviously, but nothing for asm.
> Any ideas?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>