little fix

This commit is contained in:
ardi@ist-einmalig.de 2009-07-24 16:23:00 +00:00
parent f3296b3570
commit 9b051ac7d7

View File

@ -7,7 +7,7 @@ a=$(svnversion -n ..)
b=$(cat ../source/svnrev.h | tr -d '\n' | sed 's/[^0-9]*\([0-9]*\).*/\1/') b=$(cat ../source/svnrev.h | tr -d '\n' | sed 's/[^0-9]*\([0-9]*\).*/\1/')
if [ $a -ne $b ]; then if [ "$a" != "$b" ]; then
echo '#ifndef SVNREV_H' > ../source/svnrev.h echo '#ifndef SVNREV_H' > ../source/svnrev.h
echo ' #define SVNREV_H' >> ../source/svnrev.h echo ' #define SVNREV_H' >> ../source/svnrev.h
echo ' #define SVN_REV "'$a'"' >> ../source/svnrev.h echo ' #define SVN_REV "'$a'"' >> ../source/svnrev.h