diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-25 19:23:55 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-25 19:23:55 (GMT) |
commit | 888d5f2f478b0bf83da3d43ac920bd9ae6f6a6b5 (patch) | |
tree | d812e7473d5eeaef00acd18f7e1eb9b7cae0e311 /bootstrap | |
parent | e0cfb268b6b7919824403ac1b4d20d1497edaf83 (diff) | |
download | CMake-888d5f2f478b0bf83da3d43ac920bd9ae6f6a6b5.zip CMake-888d5f2f478b0bf83da3d43ac920bd9ae6f6a6b5.tar.gz CMake-888d5f2f478b0bf83da3d43ac920bd9ae6f6a6b5.tar.bz2 |
ENH: For development versions report version when doing bootstrap
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -131,7 +131,14 @@ cmake_version() grep "SET(CMake_VERSION_${a} *[0-9]*)" | sed "s/SET(CMake_VERSION_${a} *\([0-9]*\))/\1/"` CMAKE_VERSION="${CMAKE_VERSION}.${CMake_VERSION}" done - CMAKE_VERSION=`echo $CMAKE_VERSION | sed "s/\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2-\3/"` + if echo "$CMAKE_VERSION" | grep "\.[0-9][0-9]*\.[0-9]*[13579]\.[0-9]" > /dev/null 2>&1; then + + CMake_DATE=`cat "${cmake_source_dir}/Source/cmVersion.cxx" | grep "\"\\\$Date$"` + CMake_DATE=`echo "${CMake_DATE}" | sed "s/.*Date: \([0-9][0-9]*\)\/\([0-9][0-9]*\)\/\([0-9][0-9]*\) .*/\1\2\3/" ` + CMAKE_VERSION=`echo $CMAKE_VERSION | sed "s/\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2-${CMake_DATE}/"` + else + CMAKE_VERSION=`echo $CMAKE_VERSION | sed "s/\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2-\3/"` + fi echo "CMake ${CMAKE_VERSION}, Copyright (c) 2002 Kitware, Inc., Insight Consortium" } |