#!/bin/bash
#
# on every build, record the working copy revision string
#
# $Id: mksvnversion 547 2006-05-13 22:36:25Z bcornec $
#

# TOOLHOME should be provided by callers
if [ _"$TOOLHOME" = _"" ]; then
	# It's not the case so compute it
	dname=`dirname $0`
	prem=`echo $dname |cut -c1`
	if [ ${prem} == "/" ]; then
        export TOOLHOME=$dname
	else
        export TOOLHOME=${PWD}/$dname
	fi
fi

rel=`svnversion $TOOLHOME/..`

#
# return the release
#
echo ${rel}
