[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: version number in source ASM

From: Kevin Grover <kogrover_at_gmail.com>
Date: 2006-11-09 01:42:23 CET

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 <cafahl@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
>
>
Received on Thu Nov 9 01:43:05 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.