ispCP - Board - Support
Check Version? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: Check Version? (/thread-8670.html)

Pages: 1 2


Check Version? - anarking - 12-05-2009 02:30 PM

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


RE: Check Version? - RatS - 12-05-2009 07:20 PM

build dates are set manually. We only do it with releases so far. A policy for build dates is appreciated.


RE: Check Version? - motokochan - 12-07-2009 03:33 AM

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.


RE: Check Version? - Zothos - 12-07-2009 11:14 PM

@motokochan: Sounds like a task for you? Smile


RE: Check Version? - gOOvER - 12-07-2009 11:46 PM

(12-07-2009 11:14 PM)Zothos Wrote:  @motokochan: Sounds like a task for you? Smile

+1 Big Grin


RE: Check Version? - motokochan - 12-08-2009 02:00 PM

Sure, when I get a bit of time, I'll try a few things.


RE: Check Version? - motokochan - 12-21-2009 07:04 AM

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.


RE: Check Version? - RatS - 12-24-2009 12:06 PM

I added to trunk in r 2460


RE: Check Version? - RatS - 12-24-2009 12:10 PM

you missed the version.sh file :-(


RE: Check Version? - motokochan - 12-24-2009 12:40 PM

* 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.