append svn revision to port version

Bradley Giesbrecht pixilla at macports.org
Fri Dec 9 12:42:53 PST 2011


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


Regards,
Bradley Giesbrecht (pixilla)






More information about the macports-dev mailing list