BASIS  version 1.2.3 (revision 2104)
basis.sh
Go to the documentation of this file.
00001 ##############################################################################
00002 # @file  basis.sh
00003 # @brief Main module of BASIS BASH Utilities.
00004 #
00005 # This module sources the modules of the BASIS BASH Utilities. Hence, it is
00006 # sufficient to only source this module. This is done by the
00007 # @c @BASIS_BASH_UTILITIES@ code.
00008 #
00009 # @note The basis.sh module is automatically created by BASIS from the
00010 #       template file basis.sh.in which is part of the BASIS installation.
00011 #
00012 # Copyright (c) 2011 University of Pennsylvania. All rights reserved.<br />
00013 # See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.
00014 #
00015 # Contact: SBIA Group <sbia-software at uphs.upenn.edu>
00016 #
00017 # @ingroup BasisBashUtilities
00018 ##############################################################################
00019 
00020 # return if already loaded
00021 [ "${_SBIA_BASIS_BASIS_INCLUDED:-0}" -eq 1 ] && return 0
00022 _SBIA_BASIS_BASIS_INCLUDED=1
00023 
00024 
00025 # ============================================================================
00026 # constants
00027 # ============================================================================
00028 
00029 ## @brief Absolute directory path of Basis.sh module.
00030 readonly _BASIS_DIR=$(cd -P -- "$(dirname -- "${BASH_SOURCE}")" && pwd -P)
00031 
00032 # ============================================================================
00033 # modules
00034 # ============================================================================
00035 
00036 # non-project specific
00037 source "${_BASIS_DIR}/./core.sh"    # core utilities
00038 source "${_BASIS_DIR}/./shflags.sh" # command-line parsing library
00039 
00040 # project specific
00041 source "${_BASIS_DIR}/executabletargetinfo.sh" # info about executable targets
00042 source "${_BASIS_DIR}/stdaux.sh"               # standard higher-level utilities
00043