Re: [mythtv] SVN version info

2005-12-01 Thread Kieron Wilkinson
Allan Stirling wrote: Add a header to each of the text files in Myth, with the $revision$ and/or $id$ svn keywords. These are automatically filled in by the SVN server on each checkout. For an example, look at On the current SVN implementation, this expansion is only done if a client-side

Re: [mythtv] SVN version info

2005-12-01 Thread Allan Stirling
Kieron Wilkinson wrote: Allan Stirling wrote: Add a header to each of the text files in Myth, with the $revision$ and/or $id$ svn keywords. These are automatically filled in by the SVN server on each checkout. For an example, look at On the current SVN implementation, this expansion is only

Re: [mythtv] SVN version info

2005-12-01 Thread Nigel Pearson
There is no global revision number accessible from a $tag$. True. We may be able to fake it using something like this: SVN_REV=`egrep 'ver.*mythtv' .svn/dir-wcprops | sed 's/^.*ver\///' | sed 's/\/.*//'` in configure could set a DEFINE for programs/myth*end to use (assuming that the

Re: [mythtv] SVN version info

2005-12-01 Thread Isaac Richards
On Thursday 01 December 2005 10:10 pm, Nigel Pearson wrote: There is no global revision number accessible from a $tag$. True. We may be able to fake it using something like this: SVN_REV=`egrep 'ver.*mythtv' .svn/dir-wcprops | sed 's/^.*ver\///' | sed 's/\/.*//'` in configure could

RE: [mythtv] SVN version info

2005-12-01 Thread Korey Fort
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Isaac Richards Sent: Thursday, December 01, 2005 9:31 PM To: Development of mythtv Subject: Re: [mythtv] SVN version info On Thursday 01 December 2005 10:10 pm, Nigel Pearson wrote: There is no global

Re: [mythtv] SVN version info

2005-12-01 Thread Nigel Pearson
SVN_REV=`egrep 'ver.*mythtv' .svn/dir-wcprops | sed 's/^.*ver\///' | sed 's/\/.*//'` ... Why's grepping better than svn info / svnversion? Only because it is faster than something that checks each and every file across the network, and allows builds when un-networked (like when

Re: [mythtv] SVN version info

2005-12-01 Thread Isaac Richards
On Thursday 01 December 2005 11:50 pm, Nigel Pearson wrote: SVN_REV=`egrep 'ver.*mythtv' .svn/dir-wcprops | sed 's/^.*ver\///' | sed 's/\/.*//'` ... Why's grepping better than svn info / svnversion? Only because it is faster than something that checks each and every file across

[mythtv] SVN version info

2005-11-29 Thread Allan Stirling
Currently, there is no global SVN version number available. This means that it can be quite difficult for someone running SVN to be able to discover the version number he is actually running. I've been thinking about how to get this functionality into the final executables and given the

Re: [mythtv] SVN version info

2005-11-29 Thread Bryan Mayland
Allan Stirling wrote: I've been thinking about how to get this functionality into the final executables and given the current version of SVN, there are a number of possibilities: How do they do it over at ivtv? cat ivtv-svnversion.h #define IVTV_DRIVER_VERSION_COMMENT (development revision

Re: [mythtv] SVN version info

2005-11-29 Thread Kevin Kuphal
Allan Stirling wrote: Currently, there is no global SVN version number available. This means that it can be quite difficult for someone running SVN to be able to discover the version number he is actually running. I've been thinking about how to get this functionality into the final

Re: [mythtv] SVN version info

2005-11-29 Thread Allan Stirling
Bryan Mayland wrote: Allan Stirling wrote: I've been thinking about how to get this functionality into the final executables and given the current version of SVN, there are a number of possibilities: How do they do it over at ivtv? cat ivtv-svnversion.h #define

Re: [mythtv] SVN version info

2005-11-29 Thread Petr Stehlik
Allan Stirling píše v Út 29. 11. 2005 v 19:54 +: Currently, there is no global SVN version number available. This means that it can be quite difficult for someone running SVN to be able to discover the version number he is actually running. Have I missed something obvious? if you are

Re: [mythtv] SVN version info

2005-11-29 Thread Allan Stirling
Kevin Kuphal wrote: Type svn info from your checked out folder and it will tell you the revision number you are on. Kevin Which assumes SVN is installed on the build system and that the build tree is a SVN checkout. This was the route I was looking at last time, but this point (along

Re: [mythtv] SVN version info

2005-11-29 Thread Allan Stirling
Daniel Kristjansson wrote: On Tue, 2005-11-29 at 19:54 +, Allan Stirling wrote: Currently, there is no global SVN version number available. This means that it can be quite difficult for someone running SVN to be able to discover the version number he is actually running. 1. Do without. If

Re: [mythtv] SVN version info

2005-11-29 Thread Pascal Favre
- Original Message - From: Allan Stirling [EMAIL PROTECTED] To: Development of mythtv mythtv-dev@mythtv.org Sent: Tuesday, November 29, 2005 8:54 PM Subject: [mythtv] SVN version info Currently, there is no global SVN version number available. This means that it can be quite difficult

Re: [mythtv] SVN version info

2005-11-29 Thread Stuart Morgan
On Tuesday 29 Nov 2005 20:02, Kevin Kuphal wrote: Type svn info from your checked out folder and it will tell you the revision number you are on. Not a perfect solution as the version I have checked out won't always be the version currently installed. I would rather see the version number

Re: [mythtv] SVN version info

2005-11-29 Thread Kevin Kuphal
Stuart Morgan wrote: On Tuesday 29 Nov 2005 20:02, Kevin Kuphal wrote: Type svn info from your checked out folder and it will tell you the revision number you are on. Not a perfect solution as the version I have checked out won't always be the version currently installed. I would

Re: [mythtv] SVN version info

2005-11-29 Thread Tom Lichti
Pascal Favre wrote: I made a proposition for the ivtv project, which was accepted by them. This is the original text: Hello I use a 0.4.1 branch. dmesg displays: ivtv: version 0.4.1 (development svn snapshot revision 2839 ) loading For me I do not want to see the latest trunk version (this

Re: [mythtv] SVN version info

2005-11-29 Thread Isaac Richards
On Tuesday 29 November 2005 03:46 pm, Tom Lichti wrote: Pascal Favre wrote: I made a proposition for the ivtv project, which was accepted by them. This is the original text: Hello I use a 0.4.1 branch. dmesg displays: ivtv: version 0.4.1 (development svn snapshot revision 2839 )

Re: [mythtv] SVN version info

2005-11-29 Thread Tom Lichti
Isaac Richards wrote: On Tuesday 29 November 2005 03:46 pm, Tom Lichti wrote: I like this idea, is there any harm in changing the following line in mythcontext.h: #define MYTH_BINARY_VERSION 0.19.20051128-1 to something like #define MYTH_BINARY_VERSION 0.19.20051128-1 SVN Rev. 8089 or

Re: [mythtv] SVN version info

2005-11-29 Thread Pascal Favre
From: Tom Lichti [EMAIL PROTECTED] To: Development of mythtv mythtv-dev@mythtv.org Sent: Tuesday, November 29, 2005 9:46 PM Subject: Re: [mythtv] SVN version info Pascal Favre wrote: I made a proposition for the ivtv project, which was accepted by them. This is the original text: Hello I

Re: [mythtv] SVN version info

2005-11-29 Thread Derek Atkins
Allan Stirling [EMAIL PROTECTED] writes: Not easy with SVN, since the scripts would have to checkin a file, therefore upping the revision number,... What I did with gnucash was have the build system autogenerate a gnc-svninfo.h header file that defines the SVN revision. This process is