On 12/13/06, Jonathan Ben Avraham <[EMAIL PROTECTED]> wrote:
Hi Michael,
There is no way to "attach" any "properties" to any file in Raiserfs, ext3
and most of the other file systems in common use in Linux. But you can
embed the version designator in the file assuming that you build it using
a compiler.
Define a static string like

String Version = "Version is $Header:$"

On checkout from CVS you will have the CVS version in the Version string.
Then build. To see the version designator do

strings <executable filename> |grep Version

You might have to make this String static and you might have to add a
dummy reference to the String in order to prevent the compiler from
optimizing it away.

   - yba


On Wed, 13 Dec 2006, Michael Sternberg wrote:

> Date: Wed, 13 Dec 2006 12:42:13 +0200 (IST)
> From: Michael Sternberg <[EMAIL PROTECTED]>
> To: [email protected]
> Subject: File version
>
>
> Hello everybody.
>
> Is it any way to attach a verion number to executable file ? In Windows
> "right click -> properties -> Version" style ? Maybe as output of "file"
> command ? Of course I always can implement "-v" or "--version" switch to my
> executable, but do we have something more standard ?
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
>

--
   EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA    ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
       - [EMAIL PROTECTED] - tel: +972.2.679.5364, http://www.tkos.co.il -


Well, if version control was brought up, Why not use SubversionFS? ;)

You can set properties on a file via "svn propset", you gain the
benefit of automatic revision-ing to your binary, and you can easily
sync the various systems / locations you have this file in use. To get
the version of the file you would do something like "svn propget
bin_version BINARY" or script it for "svnver BINARY [REV]"


--
Cheers,
Maxim Vexler

"Free as in Freedom" - Do u GNU ?

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to