LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-01-2009, 01:00 PM   #1
saleem_ak
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
Versioning of Binaries and Libraries in Linux


Hi,

Is there any method of versioning of the binaries and libraries in linux, similar to what windows Visual Studio provides. This is required to maintain the version of the releases of my binaries and libraries. Later I could run some command on these binaries and libraries to know its version.

Regards
Saleem
 
Old 04-01-2009, 02:43 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
You can use static strings containing version information, and later run strings against the binaries. You can even use CVS (maybe SVN too; I don't use SVN) tags embedded in your source code to automatically keep the version information up-to-date as revisions are checked out of the repository.
Code:
static char * filename_c = "\nfilename.c  $Revision: 1.4 $ $Date: 2008/03/05 23:20:37 $\n";
--- rod.
 
Old 04-01-2009, 05:02 PM   #3
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
For subversion:
http://svnbook.red-bean.com/en/1.4/s....keywords.html

I actually never knew you could do this. It's definitely something I'll use now.
Kevin Barry
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
versioning in linux fizeelinux Linux - Newbie 13 02-10-2009 05:49 AM
Linux binaries syntacticalerror Linux - Newbie 5 07-30-2008 09:47 PM
Changing a binaries linked libraries piercey Linux - General 1 09-12-2007 06:02 PM
Pre-compiled libraries and binaries. pappy_mcfae Slackware 8 03-27-2007 02:07 AM
Build i386 binaries based on i386 shared libraries .so linuxcrazyguy Linux - Software 0 03-19-2007 05:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration