diff options
author | Brad King <brad.king@kitware.com> | 2006-08-26 01:21:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-26 01:21:10 (GMT) |
commit | 6e2f8199420d0f51bf5a02bb29f32a9d6016b1e6 (patch) | |
tree | 2b21af2cac4e3ea9ed794ccf6a26ea0d261c5d10 /bootstrap | |
parent | a2e3b01a59687abf37b69dbdc5f25db4d5da4f48 (diff) | |
download | CMake-6e2f8199420d0f51bf5a02bb29f32a9d6016b1e6.zip CMake-6e2f8199420d0f51bf5a02bb29f32a9d6016b1e6.tar.gz CMake-6e2f8199420d0f51bf5a02bb29f32a9d6016b1e6.tar.bz2 |
ENH: Changing default data and doc directories to share/cmake-V.v and doc/cmake-V.v instead of share/CMake and doc/CMake for consistency with many linux distribution conventions.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -17,14 +17,23 @@ # #========================================================================= +# Version number extraction function. +cmake_version_component() +{ + cat "${cmake_source_dir}/CMakeLists.txt" | sed -n " +/^SET(CMake_VERSION_${1}/ {s/SET(CMake_VERSION_${1} *\([0-9]*\))/\1/;p;} +" +} + # Detect system and directory information. cmake_system=`uname` cmake_source_dir=`echo $0 | sed -n '/\//{s/\/[^\/]*$//;p;}'` cmake_source_dir=`(cd "${cmake_source_dir}";pwd)` cmake_binary_dir=`pwd` cmake_bootstrap_dir="${cmake_binary_dir}/Bootstrap.cmk" -cmake_data_dir="/share/CMake" -cmake_doc_dir="/doc/CMake" +cmake_version="`cmake_version_component MAJOR`.`cmake_version_component MINOR`" +cmake_data_dir="/share/cmake-${cmake_version}" +cmake_doc_dir="/doc/cmake-${cmake_version}" cmake_man_dir="/man" cmake_init_file="" |