BUG: Do not have variable and function of the same name. Old shells do not likeit.

This commit is contained in:
Brad King 2008-01-23 17:43:08 -05:00
parent f5a5b1ffd6
commit 02c3b71b2f

View File

@ -255,7 +255,7 @@ EOF
} }
# Display CMake bootstrap usage # Display CMake bootstrap usage
cmake_version() cmake_version_display()
{ {
( (
# Get CMake version # Get CMake version
@ -482,7 +482,7 @@ for a in "$@"; do
cmake_usage cmake_usage
fi fi
if echo $a | grep "^--version" > /dev/null 2> /dev/null; then if echo $a | grep "^--version" > /dev/null 2> /dev/null; then
cmake_version cmake_version_display
exit 2 exit 2
fi fi
if echo $a | grep "^--verbose" > /dev/null 2> /dev/null; then if echo $a | grep "^--verbose" > /dev/null 2> /dev/null; then
@ -505,7 +505,7 @@ fi
echo "---------------------------------------------" echo "---------------------------------------------"
# Get CMake version # Get CMake version
echo "`cmake_version`" echo "`cmake_version_display`"
# Check for in-source build # Check for in-source build
cmake_in_source_build= cmake_in_source_build=