--- /dev/null
+#!/bin/bash
+
+revision=$(svn info|grep Revision|sed 's/Revision: //')
+
+if [ -n "$(svn status|grep '^M')" ]; then
+ status=" with local changes"
+else
+ status=""
+fi;
+
+echo '// This file is created automatically, your changes will be lost.' > svnrevision.h
+echo '#define SVNREVISION "r'$revision$status'"' >> svnrevision.h
+