#!/bin/bash revision=`LC_ALL=C svn info | awk '/^Revision: / {printf "%d\n", $2}'` target=tietoopcom sed -e "s/@REVISION@/${revision}/g" \ < "include/version.in" > "include/version.h" sed -e "s/@TARGET@/${target}/g" \ < "include/version.in" > "include/version.h" qmake cd src qmake cd .. echo Completed at revision ${revision}