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 _______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev