CMake:
* Truncate revision number (version_suffix) to numbers only (some versions of svn seem to add other strings)
--- a/CMakeLists.txt Sat Mar 27 11:59:03 2010 +0000
+++ b/CMakeLists.txt Sat Mar 27 12:01:40 2010 +0000
@@ -16,6 +16,8 @@
Subversion_WC_INFO(${CMAKE_HOME_DIRECTORY} Project)
MESSAGE(STATUS "Builing revision ${Project_WC_REVISION}")
set(version_suffix ".${Project_WC_REVISION}")
+ #truncate to numbers only - trying to fix a problem described in http://www.hedgewars.org/node/2019
+ STRING(REGEX REPLACE "^\\.(\\d+)" "\\1" version_suffix ${version_suffix})
ENDIF(Subversion_FOUND)
ENDIF()
ELSE()