#!/bin/sh # # # # Small script to use the svn revision keyword within the Makefile # # NOTE: svn currently does not remove keywords when expanding on an export # also Revision keyword is last rev mod of this file, not repo # so cannot be used to get correct build number. SVNVERS=`svnversion . | sed 's/M//'` echo $SVNVERS | grep "exported" >/dev/null if [ $? -ne 0 ]; then echo $SVNVERS | awk -F: '{print $NF}' fi