Revision: 1410
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1410&view=rev
Author: rorthomas
Date: 2010-06-23 00:24:48 +0000 (Wed, 23 Jun 2010)
Log Message:
-----------
using LSB info for the installer now
Modified Paths:
--------------
trunk/source/installer/CMakeLists.txt
Modified: trunk/source/installer/CMakeLists.txt
===================================================================
--- trunk/source/installer/CMakeLists.txt 2010-06-22 23:46:39 UTC (rev
1409)
+++ trunk/source/installer/CMakeLists.txt 2010-06-23 00:24:48 UTC (rev
1410)
@@ -5,15 +5,40 @@
set(include_files ConfigManager.h wizard.h wxStrel.h wthread.h cevent.h
symlink.h utils.h)
IF(WIN32)
-set(INSTALLER_PLATFORM "win32" CACHE PATH "Installer chosen platform")
+ set(INSTALLER_PLATFORM "win32" CACHE PATH "Installer chosen platform")
ENDIF(WIN32)
IF(UNIX)
-set(INSTALLER_PLATFORM "ubuntu9.10" CACHE PATH "Installer chosen platform")
+ # use the LSB stuff if possible :)
+ EXECUTE_PROCESS(
+ COMMAND cat /etc/lsb-release
+ COMMAND grep DISTRIB_ID
+ COMMAND awk -F= "{ print $2 }"
+ COMMAND tr "\n" " "
+ COMMAND sed "s/ //"
+ OUTPUT_VARIABLE LSB_ID
+ RESULT_VARIABLE LSB_ID_RESULT
+ )
+ EXECUTE_PROCESS(
+ COMMAND cat /etc/lsb-release
+ COMMAND grep DISTRIB_RELEASE
+ COMMAND awk -F= "{ print $2 }"
+ COMMAND tr "\n" " "
+ COMMAND sed "s/ //"
+ OUTPUT_VARIABLE LSB_VER
+ RESULT_VARIABLE LSB_VER_RESULT
+ )
+ #message("LSB output: ${LSB_ID_RESULT}:${LSB_ID}
${LSB_VER_RESULT}:${LSB_VER}")
+ if(NOT ${LSB_ID} STREQUAL "")
+ # found some, use it :D
+ set(INSTALLER_PLATFORM "${LSB_ID}-${LSB_VER}" CACHE PATH "Installer
chosen platform")
+ else(NOT ${LSB_ID} STREQUAL "")
+ set(INSTALLER_PLATFORM "linux-generic" CACHE PATH "Installer chosen
platform")
+ endif(NOT ${LSB_ID} STREQUAL "")
ENDIF(UNIX)
include_directories(${WXWIDGETS_STATIC_INCLUDE_DIRS})
add_definitions("-DINSTALLER_PLATFORM=\"${INSTALLER_PLATFORM}\"")
-#message("the default installer platform is \"${INSTALLER_PLATFORM}\". To
change this, edit INSTALLER_PLATFORM value in cmake.")
+message("the default installer platform is \"${INSTALLER_PLATFORM}\". To
change this, edit INSTALLER_PLATFORM value in cmake.")
include_directories(${BOOST_INCLUDE_DIRS})
link_directories (${BOOST_LIBRARY_DIRS})
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel