Also, this (version) should be autoconf'ed since it is currently hardcoded in at least 4 places.
echo "m4_define([SVN_REV], $REV)" > $REV_FILE
echo "m4_define([SVN_REVISION], 1.0svn$REV)" >> $REV_FILE
echo "m4_define([SVN_DATE], $LCD)" >> $REV_FILE
# Also change the revision number in debian/changelog for package versioning
mv debian/changelog debian/changelog.tmp
sed "1 s/(1.0svn[^-)]*/(1.0svn$REV/" < debian/changelog.tmp > debian/changelog
rm debian/changelog.tmp
%define _version 1.0_0.svn.%{_svnrev}
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleGetInfoString</key>
<string>CodeBlocks version 1.0 svn @REVISION@, (c) 2004-2008 Code::Blocks</string>
<key>CFBundleLongVersionString</key>
<string>1.0, (c) 2004-2008 Code::Blocks</string>