binary versioning


 
Thread Tools Search this Thread
Top Forums Programming binary versioning
# 1  
Old 10-05-2007
binary versioning

Dear Members,

Do you know any information about versioning a binary file. That means test.out 1.0.0, 1.0.1, 1.1.0, and so on. Can I manually edit version number (both major and minor) and revision number myself (how?) or any utility to set version number (which one?).

Best Regards,
Francesco
# 2  
Old 10-05-2007
You could put the version information in a header file and use it when you build your app. This information can be used in the following manner eg. ./myapp --version would print out this version info.

You may also want to check man pages of 'ident' as well.

Also, I dont think there are any utilities (atleast I am not aware) which does the versioning for you. Each app and so the component/product owner has their own way of versioning.
# 3  
Old 10-05-2007
It is traditional to put version numbers of shared libraries where the major number refers the interface to the library, the complete version refering to the implementation.

If you look in /usr/lib on an ELF system you will typically see

libNAME.so.major.minor

with a link from

libNAME.so.major to libNAME.so.major.minor

and another link

libNAME.so to libNAME.so.major

This library will have the SONAME attribute set to libNAME.so.major so when an application links against it, it will refer to the correct interface, not the exact implementation.

This allows the implementation to be updated and maintained as long as the interface does not change.

Some other binary systems have equivalents to ELF's SONAME, such as Darwin's 'install_name'.

The SONAME attribute is set at link time.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Versioning up a file with initials?

I have this code that works great ... #!/bin/sh for file in "$@" do ext=${file##*.} base=${file%.*} num=${base##*v} zeroes=${num%%*} num=${num#$zeroes} #remove leading zeros, or it uses octal num=$((num+1)) base=${base%v*} ... (5 Replies)
Discussion started by: scribling
5 Replies

2. Shell Programming and Scripting

Need to get versioning of the branch name dynamically

Hi, I need to get versioning of the branch name dynamically. can you please help us to achieve this functionality. curl https://altrecmktg.com/artifactory/mediamarketing/release-2.0.1/altrec.tar curl https://altrecmktg.com/artifactory/mediamarketing/release-2.0.2/altrec.tar everytime... (5 Replies)
Discussion started by: lkeswar
5 Replies

3. Programming

Execution problem with Libtool Versioning control

Hi, Is anybody familiar with libtool could explain me the following issue.? I've created a small factorial program(fact_impl.c, fact_appln.c & fact.h) in order to know about this libtool. >>> fact.h #include<stdio.h> #include<math.h> extern unsigned int fact_num(unsigned int num);... (0 Replies)
Discussion started by: Parameswaran
0 Replies

4. Shell Programming and Scripting

Convert binary file to csv and then back to the binary format

Hello *nix specialists, Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Discussion started by: digidax
7 Replies

5. SCO

Versioning through undelete

Hi , I am using SCO openserver realease 3.2 and tried to test versioning on a directory with undelete -s . The command executes well but it is not creating any versions of the files in it. I have also setted versioning options via filesystem and then remounted it but of ... (0 Replies)
Discussion started by: dextergenious
0 Replies

6. Shell Programming and Scripting

File Versioning with Shell Script

Need to add the version date to the moved file if same file name in folder exists and limit the same files in the folder. Ex: If moved or copy file abc.txt to folder XYZ then append the version date abc07112011.txt or abc07122011.txt in the folder. \xyz abc07132011.txt abc07122011.txt... (2 Replies)
Discussion started by: Brado
2 Replies

7. Linux

Any Filesystems in Linux Support Versioning?

A question that has come up repeatedly where I work from our former VMS guys is... "will any Linux filesystem ever support versioning like RMS did"? When they talk about versioning they really are talking about something that *I think* would involve having apps that support versioning. For... (7 Replies)
Discussion started by: deckard
7 Replies

8. Solaris

Solaris versioning

Please correct me if I am wrong... Isnt the only difference between minor releases of Solaris, ex. 9/04 and 9/05, is the patche revs between them? If so, why does the /etc/release info stay static when patched? (4 Replies)
Discussion started by: mhm4
4 Replies
Login or Register to Ask a Question