Re: append svn revision to port version

2011-12-12 Thread Dan Ports
On Fri, Dec 09, 2011 at 02:25:24PM -0800, Bradley Giesbrecht wrote: > Dan, I am not that familiar with svn. Are you suggesting something like the > following? > > base/getversion.sh: > # Path to me. > DIRNAME=$(dirname $0) > SVN_REVISION=$(svnversion -n $DIRNAME) Yes, exactly. Dan -- Dan R. K

Re: append svn revision to port version

2011-12-09 Thread Joshua Root
On 2011-12-10 11:30 , Bradley Giesbrecht wrote: > On Dec 9, 2011, at 4:18 PM, Joshua Root wrote: > >> The idea is fine, but you should extend MACPORTS_VERSION_MACRO rather >> than calling a separate shell script. > > > The MACPORTS_VERSION_MACRO in configure.ac? > > I did that first but then th

Re: append svn revision to port version

2011-12-09 Thread Bradley Giesbrecht
On Dec 9, 2011, at 4:18 PM, Joshua Root wrote: > On 2011-12-10 07:42 , Bradley Giesbrecht wrote: >> I use port from trunk and I update trunk regularly. I do not know a how to >> find what revision of trunk my port command was built from. >> >> Is there any interest in adding the svn revision to

Re: append svn revision to port version

2011-12-09 Thread Joshua Root
On 2011-12-10 07:42 , Bradley Giesbrecht wrote: > I use port from trunk and I update trunk regularly. I do not know a how to > find what revision of trunk my port command was built from. > > Is there any interest in adding the svn revision to the MACPORTS_VERSION when > port is built from trunk?

Re: append svn revision to port version

2011-12-09 Thread Bradley Giesbrecht
On Dec 9, 2011, at 1:56 PM, Dan Ports wrote: > On Fri, Dec 09, 2011 at 12:42:53PM -0800, Bradley Giesbrecht wrote: >> Is there any interest in adding the svn revision to the MACPORTS_VERSION >> when port is built from trunk? >> >> I wrote a shell script "getversion.sh" and call it from configur

Re: append svn revision to port version

2011-12-09 Thread Dan Ports
On Fri, Dec 09, 2011 at 12:42:53PM -0800, Bradley Giesbrecht wrote: > Is there any interest in adding the svn revision to the MACPORTS_VERSION when > port is built from trunk? > > I wrote a shell script "getversion.sh" and call it from configure to add > "-$REVISION" when MACPORTS_VERSION revis

append svn revision to port version

2011-12-09 Thread Bradley Giesbrecht
I use port from trunk and I update trunk regularly. I do not know a how to find what revision of trunk my port command was built from. Is there any interest in adding the svn revision to the MACPORTS_VERSION when port is built from trunk? I wrote a shell script "getversion.sh" and call it from