append svn revision to port version

Joshua Root jmr at macports.org
Fri Dec 9 16:18:17 PST 2011


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?
> 
> I wrote a shell script "getversion.sh" and call it from configure to add "-$REVISION" when MACPORTS_VERSION  revision/patch-level is 99 and svn info is successful.
> $ svn diff http://svn.macports.org/repository/macports/trunk/base http://svn.macports.org/repository/macports/users/pixilla/base

The idea is fine, but you should extend MACPORTS_VERSION_MACRO rather
than calling a separate shell script.

- Josh


More information about the macports-dev mailing list