# HG changeset patch # User koda # Date 1362400233 -3600 # Node ID f3aa0d48a6009425244b9e3ab915eee1d385dc23 # Parent 75d42abc93754779a10a6e272aefaf0304a1700b dump rev and hash in a file to be packed by cpack diff -r 75d42abc9375 -r f3aa0d48a600 .hgignore --- a/.hgignore Mon Mar 04 13:29:59 2013 +0100 +++ b/.hgignore Mon Mar 04 13:30:33 2013 +0100 @@ -61,3 +61,5 @@ glob:share/hedgewars/Data/misc/hwengine.desktop glob:*.exe glob:_CPack_Packages/ +glob:version_info.txt +glob:*.tar.* diff -r 75d42abc9375 -r f3aa0d48a600 CMakeLists.txt --- a/CMakeLists.txt Mon Mar 04 13:29:59 2013 +0100 +++ b/CMakeLists.txt Mon Mar 04 13:30:33 2013 +0100 @@ -57,6 +57,8 @@ endif() #let's assume that if you have hg you might be interested in debugging set(default_build_type "DEBUG") + #write down hash and rev for easy picking should hg be missing + file(WRITE "${CMAKE_SOURCE_DIR}/share/version_info.txt" "Hedgewars versioning information, do not modify\nrev ${revision_number}\nhash ${hash_number}\n") else() set(default_build_type "RELEASE") # TODO think of a better fallback when hg not found