1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh # $Id$ # $URL$ OLD_VERSION=`cat svn_version.h 2>/dev/null` if [ -d .svn ]; then NEW_VERSION="#define SVN_VERSION \"`svnversion -n`\"" fi if [ "$NEW_VERSION" != "$OLD_VERSION" ]; then echo $NEW_VERSION >svn_version.h fi