BASIS  r3148
config.sh
Go to the documentation of this file.
00001 ##############################################################################
00002 # @file  config.sh
00003 # @brief Defines constants such as the BASH version.
00004 #
00005 # Copyright (c) 2012 University of Pennsylvania. All rights reserved.<br />
00006 # See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.
00007 #
00008 # Contact: SBIA Group <sbia-software at uphs.upenn.edu>
00009 ##############################################################################
00010 
00011 [ "${_BASIS_CONFIG_INCLUDED}" == 'true' ] || {
00012 _BASIS_CONFIG_INCLUDED='true'
00013 
00014 
00015 ## @addtogroup BasisBashUtilities
00016 #  @{
00017 
00018 
00019 ## @brief Major version number of Bash interpreter.
00020 BASH_VERSION_MAJOR=${BASH_VERSION%%.*}
00021 ## @brief Minor version number of Bash interpreter.
00022 BASH_VERSION_MINOR=${BASH_VERSION#*.}
00023 BASH_VERSION_MINOR=${BASH_VERSION_MINOR%%.*}
00024 
00025 readonly BASH_VERSION_MAJOR
00026 readonly BASH_VERSION_MINOR
00027 
00028 
00029 ## @}
00030 # end of Doxygen group
00031 
00032 
00033 } # _BASIS_CONFIG_INCLUDED