Adding version number to builds

Reply

Join Date: Feb 2008
Posts: 28
Reputation: sjcomp is an unknown quantity at this point 
Solved Threads: 0
sjcomp's Avatar
sjcomp sjcomp is offline Offline
Light Poster

Adding version number to builds

 
0
  #1
Apr 14th, 2008
Hello,

I have a project that I can build with a script. I'd like to add version number + release number to my builds. I'm looking for a way to do it automatically. As a result I'd like to get something like that: \deployment\v1.2.3\some.exe
When I run exe I'd like it to know that its version is 1.2.3.

1.2 is the actual version that I can setup manually, but .3 I'd like to change every time I run the deployment script, and it should reset when the version changes. I can write a perl script that reads a file and applies proper changes. But maybe there is a standard way to do these things and I'm not aware of it.

Thanks.
Regards, Alexander. http://sjcomp.com
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 399
Reputation: eggi will become famous soon enough eggi will become famous soon enough 
Solved Threads: 47
eggi eggi is offline Offline
Posting Whiz

Re: Adding version number to builds

 
0
  #2
Apr 14th, 2008
Hey There,

If you use cvs, it will update the minor revision by default every time you check the code out and check it back in.

Ex:

mkdir -p /var/tmp/build
cd /var/tmp/build
cvs co PROJECT_NAME
cvs update -q <--- if you have this directory already and just want to update
cvs ci/update/add

Of course, you'd have to login, etc, first.

If you're using this already it's a good "incidental" feature and you could still force your version tags if you wanted to.

Here's a fairly decent link to tagging with cvs (The main cvs page can be found on Sourceforge.net)

http://www.linux.ie/articles/tutoria...tinuingcvs.php

Hope that helps

, Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 28
Reputation: sjcomp is an unknown quantity at this point 
Solved Threads: 0
sjcomp's Avatar
sjcomp sjcomp is offline Offline
Light Poster

Re: Adding version number to builds

 
0
  #3
Apr 14th, 2008
Thanks, eggi.
I'm actually using subversion. And I know that it does have similar option. It looks like I have to use build number, because I can have multiple builds of the code before I commit.

Thanks.
Regards, Alexander. http://sjcomp.com
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 399
Reputation: eggi will become famous soon enough eggi will become famous soon enough 
Solved Threads: 47
eggi eggi is offline Offline
Posting Whiz

Re: Adding version number to builds

 
0
  #4
Apr 14th, 2008
No problem,

Check this out. This guy figured out how to use subversion's revision number as your build number

http://www.red-sweater.com/blog/23/a...oning-in-xcode

Best wishes,

Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this Free Report now!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 28
Reputation: sjcomp is an unknown quantity at this point 
Solved Threads: 0
sjcomp's Avatar
sjcomp sjcomp is offline Offline
Light Poster

Re: Adding version number to builds

 
0
  #5
Apr 15th, 2008
Thanks Mike, it was useful!
Regards, Alexander. http://sjcomp.com
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Shell Scripting Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC