22# have been installed.
33#
44# ISSM_DIR and ISSM_ARCH should have been defined already in your shell
5- # settings file (i.e. .bashrc, .cshrc).
5+ # settings file (i.e., .bashrc, .zshrc , .cshrc).
66#
77# NOTE:
88# - We use <PKG>_ROOT_TEMP variables because all variables are exported to
99# environment when this script is source'd. In some cases, this may cause
1010# conflicts (e.g. on Pleiades, we use the module copy of PETSc, which
1111# defines PETSC_ROOT).
12- #
1312
13+ # Silence `zsh: no matches found: <file>`
1414if [[ -n " $ZSH_VERSION " ]]; then
15- # Silence `zsh: no matches found: <file>`
1615 setopt +o nomatch 1> /dev/null 2>&1
1716fi
1817
1918# # Functions
20- #
2119c_include_path_append (){ #{{{
2220 if [ -d " ${1} " ]; then
2321 if [ -z " ${C_INCLUDE_PATH} " ]; then
@@ -36,7 +34,6 @@ c_include_path_prepend(){ #{{{
3634 fi
3735 fi
3836} # }}}
39-
4037cpath_append (){ #{{{
4138 if [ -d " ${1} " ]; then
4239 if [ -z " ${CPATH} " ]; then
@@ -55,7 +52,6 @@ cpath_prepend(){ #{{{
5552 fi
5653 fi
5754} # }}}
58-
5955cplus_include_path_append (){ #{{{
6056 if [ -d " ${1} " ]; then
6157 if [ -z " ${CPLUS_INCLUDE_PATH} " ]; then
@@ -74,7 +70,6 @@ cplus_include_path_prepend(){ #{{{
7470 fi
7571 fi
7672} # }}}
77-
7873dyld_library_path_append (){ #{{{
7974 if [ -d " ${1} " ]; then
8075 if [ -z " ${DYLD_LIBRARY_PATH} " ]; then
@@ -89,7 +84,6 @@ dyld_library_path_append(){ #{{{
8984 fi
9085 fi
9186} # }}}
92-
9387dyld_library_path_prepend (){ #{{{
9488 if [ -d " ${1} " ]; then
9589 if [ -z " ${DYLD_LIBRARY_PATH} " ]; then
@@ -104,7 +98,6 @@ dyld_library_path_prepend(){ #{{{
10498 fi
10599 fi
106100} # }}}
107-
108101ld_library_path_append (){ #{{{
109102 if [ -d " ${1} " ]; then
110103 if [ -z " ${LD_LIBRARY_PATH} " ]; then
@@ -119,7 +112,6 @@ ld_library_path_append(){ #{{{
119112 fi
120113 fi
121114} # }}}
122-
123115ld_library_path_prepend (){ #{{{
124116 if [ -d " ${1} " ]; then
125117 if [ -z " ${LD_LIBRARY_PATH} " ]; then
@@ -134,7 +126,6 @@ ld_library_path_prepend(){ #{{{
134126 fi
135127 fi
136128} # }}}
137-
138129library_path_append (){ #{{{
139130 if [ -d " ${1} " ]; then
140131 if [ -z " ${LIBRARY_PATH} " ]; then
@@ -144,7 +135,6 @@ library_path_append(){ #{{{
144135 fi
145136 fi
146137} # }}}
147-
148138library_path_prepend (){ #{{{
149139 if [ -d " ${1} " ]; then
150140 if [ -z " ${LIBRARY_PATH} " ]; then
@@ -154,7 +144,6 @@ library_path_prepend(){ #{{{
154144 fi
155145 fi
156146} # }}}
157-
158147path_append (){ #{{{
159148 if [ -d " ${1} " ] && [[ " :${PATH} :" != * " :${1} :" * ]]; then
160149 PATH_IN=" ${1} "
@@ -164,7 +153,6 @@ path_append(){ #{{{
164153 export PATH=" ${PATH} :${PATH_IN} "
165154 fi
166155} # }}}
167-
168156path_prepend (){ #{{{
169157 if [ -d " ${1} " ] && [[ " :${PATH} :" != * " :${1} :" * ]]; then
170158 PATH_IN=" ${1} "
@@ -178,11 +166,10 @@ path_prepend(){ #{{{
178166path_append " ${ISSM_DIR} /aux-config"
179167path_append " ${ISSM_DIR} /scripts"
180168
181- # Default path to external packages. Redefine this constant if they are
182- # installed to a different directory. Alternatively, export it on the command
183- # line or in a profile initialization file (that is why we check here if it is
169+ # Default path to external packages. Redefine this constant if they are
170+ # installed to a different directory. Alternatively, export it on the command
171+ # line or in a profile initialization file (that is why we check here if it is
184172# set already).
185- #
186173if [ -z " ${ISSM_EXT_DIR+x} " ]; then
187174 export ISSM_EXT_DIR=" ${ISSM_DIR} /externalpackages"
188175fi
0 commit comments