#!/bin/bash # # on every build, record the working copy revision string # # $Id: mksvnversion 319 2006-01-14 10:44:12Z 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/..` cat > $TOOLHOME/../mondo/REVISION << EOF ${rel} EOF cat > $TOOLHOME/../mindi/REVISION << EOF ${rel} EOF # # return the release # echo ${rel}