[Vm-dev] sqPluginsSCCSVersion.h (was: [commit][2953] In sqFileOpen() ensure that Mac file characteristics are set only when a new file is created)

David T. Lewis lewis at mail.msen.com
Sat Jun 7 18:22:11 UTC 2014


On Sat, Jun 07, 2014 at 10:59:40AM -0700, tim Rowledge wrote:
> 
> Possibly related - I was talk ing with IanP a while back about the technique for extracting the latest revision number from SVN; his code is/was using some messing with unix/Changleog to work it out. Whilst trying to do something else I spotted the svnversion command which appears to do something not entirely unrelated 
>  http://svnbook.red-bean.com/en/1.7/svn.ref.svnversion.re.html

Right. In Ian's CMake procedures, this is automated:

	if test -d "${unix}/../.svn" -o -d "${unix}/../../.svn"; then
	    svnversion=`svn info "${unix}/ChangeLog" | fgrep Revision: | awk '{print $2}'`
	    echo "${svnversion}" > "${unix}/svnversion"
	else
	    svnversion=`cat "${unix}/svnversion"`
	fi

This is foolproof and works well.

The only manual part of the version identification right now is the part
that requires manual updates to VMMaker class>>versionString. Being a
manual process, nobody other than me ever remembers to do it.

Dave


More information about the Vm-dev mailing list