append svn revision to port version

Dan Ports dports at macports.org
Mon Dec 12 21:49:46 PST 2011


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. Ports              MIT CSAIL                http://drkp.net/


More information about the macports-dev mailing list