What about: attr - For the XFS filesystem setfattr / getfattr - For other file systems
--- Chaim On Wednesday 13 December 2006 13:06, Jonathan Ben Avraham 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] ================================================================= 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]
