config.sh
Go to the documentation of this file.
1 # ============================================================================
2 # Copyright (c) 2011-2012 University of Pennsylvania
3 # Copyright (c) 2013-2016 Andreas Schuh
4 # All rights reserved.
5 #
6 # See COPYING file for license information or visit
7 # https://cmake-basis.github.io/download.html#license
8 # ============================================================================
9 
10 ##############################################################################
11 # @file config.sh
12 # @brief Defines constants such as the BASH version.
13 ##############################################################################
14 
15 [ "${_BASIS_CONFIG_INCLUDED}" == 'true' ] || {
16 _BASIS_CONFIG_INCLUDED='true'
17 
18 
19 ## @addtogroup BasisBashUtilities
20 # @{
21 
22 
23 ## @brief Major version number of Bash interpreter.
24 BASH_VERSION_MAJOR=${BASH_VERSION%%.*}
25 ## @brief Minor version number of Bash interpreter.
26 BASH_VERSION_MINOR=${BASH_VERSION#*.}
28 
29 readonly BASH_VERSION_MAJOR
30 readonly BASH_VERSION_MINOR
31 
32 
33 ## @}
34 # end of Doxygen group
35 
36 
37 } # _BASIS_CONFIG_INCLUDED
cmake BASH_VERSION_MAJOR
Definition: FindBASH.cmake:12
cmake BASH_VERSION_MINOR
Definition: FindBASH.cmake:37