Current time: 11-15-2024, 11:55 PM Hello There, Guest! (LoginRegister)


Post Reply 
Check Version?
Author Message
anarking Offline
Junior Member
*

Posts: 29
Joined: Nov 2009
Reputation: 0
Post: #1
Check Version?
Hi all, I had installed the nightly for November 13 I think and just ran the nightly->nightly update script so that I can install the software installer RC1. I modified the update script with my mySQL password and added a "karmic" line for ${RELEASE} since I am running Ubuntu 9.10. (might want to update the script in the documentation to include that now). The update seemed to go successfully.

My question is, how do I check what version/trunk revision I am running?

In the hosting panel it shows:
ispCP 1.0.3 OMEGA
build: 20090823
Codename: Orpheus

but that is what it showed before. Is there a command I can run to check the actual version?

Thanks
(This post was last modified: 12-05-2009 02:31 PM by anarking.)
12-05-2009 02:30 PM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #2
RE: Check Version?
build dates are set manually. We only do it with releases so far. A policy for build dates is appreciated.
12-05-2009 07:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #3
RE: Check Version?
It would be nice to at least show SVN revision for non-release code. You could possibly integrate the pulling of the revision in the Makefile, kinda like how the MPlayer project manages it.
12-07-2009 03:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #4
RE: Check Version?
@motokochan: Sounds like a task for you? Smile
12-07-2009 11:14 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #5
RE: Check Version?
(12-07-2009 11:14 PM)Zothos Wrote:  @motokochan: Sounds like a task for you? Smile

+1 Big Grin
12-07-2009 11:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #6
RE: Check Version?
Sure, when I get a bit of time, I'll try a few things.
12-08-2009 02:00 PM
Visit this user's website Find all posts by this user Quote this message in a reply
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #7
RE: Check Version?
I found some time, so here is the initial version of an SVN Revision Display. It replaces the Build Date variable with the SVN revision it finds using the "svn info" command.

Note that this will not work on an export, only on a checkout (it relies on SVN metadata).

There is also logic for a release version file.

I have checked that it works in all basics, but don't have any recent BSD release, so the changes made to BSD have not been validated.

This is a diff from the trunk, but the changes are simple enough that it should be able to be applied against the 1.0.4 branch.


Attached File(s)
.txt  svnrevdisplay.diff.txt (Size: 8.98 KB / Downloads: 16)
(This post was last modified: 12-21-2009 07:05 AM by motokochan.)
12-21-2009 07:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #8
RE: Check Version?
I added to trunk in r 2460
12-24-2009 12:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #9
RE: Check Version?
you missed the version.sh file :-(
12-24-2009 12:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #10
RE: Check Version?
* motokochan grrrs @ svn diff command.

I forgot to do an svn add in order to diff. I'll post version.sh in just a second.

Edit: It seems I deleted it when I was working on cleaning up my environment for some more work. I'll check on my test server and if not, I'll re-write the script.

Edit 2: Re-wrote the script (it's actually a bit more condensed now) and it's attached. For releases and snapshots, simply provide a "VERSION" file with the line you want to use.


Attached File(s)
.txt  version.sh.diff.txt (Size: 670 bytes / Downloads: 3)
(This post was last modified: 12-24-2009 01:10 PM by motokochan.)
12-24-2009 12:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 7 Guest(s)