Changeset 2787 for LMDZ5/branches/testing/makelmdz_fcm
- Timestamp:
- Jan 30, 2017, 5:54:45 PM (8 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 2728,2730-2775,2777-2785
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/makelmdz_fcm
r2720 r2787 37 37 full='' 38 38 libphy=false 39 40 arch_defined="FALSE" 41 arch_path="arch" 42 arch_default_path="arch" 39 43 40 44 LMDGCM=`/bin/pwd` … … 107 111 [-fcm_path path] : path to the fcm tool (default: tools/fcm/bin) 108 112 [-ext_src path] : path to an additional set of routines to compile with the model 113 [-arch_path path] : path to architecture files (default: $arch_default_path) 109 114 -arch nom_arch : target architecture 110 115 exec : executable to build … … 196 201 197 202 "-arch") 198 arch=$2 ; shift ; shift ;; 203 arch=$2 ; arch_defined="TRUE" ; shift ; shift ;; 204 205 "-arch_path") 206 arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;; 199 207 200 208 *) … … 226 234 rm -rf .void_dir 227 235 mkdir .void_dir 228 rm -f arch.path 229 ln -s arch/arch-${arch}.path ./arch.path 230 source arch.path 236 237 if [[ "$arch_defined" == "TRUE" ]] 238 then 239 rm -f arch.path 240 rm -f arch.fcm 241 rm -f arch.env 242 243 if test -f $arch_path/arch-${arch}.path 244 then 245 ln -s $arch_path/arch-${arch}.path arch.path 246 elif test -f $arch_default_path/arch-${arch}.path 247 then 248 ln -s $arch_default_path/arch-${arch}.path arch.path 249 fi 250 251 if test -f $arch_path/arch-${arch}.fcm 252 then 253 ln -s $arch_path/arch-${arch}.fcm arch.fcm 254 elif test -f $arch_default_path/arch-${arch}.fcm 255 then 256 ln -s $arch_default_path/arch-${arch}.fcm arch.fcm 257 fi 258 259 if test -f $arch_path/arch-${arch}.env 260 then 261 ln -s $arch_path/arch-${arch}.env arch.env 262 elif test -f $arch_default_path/arch-${arch}.env 263 then 264 ln -s $arch_default_path/arch-${arch}.env arch.env 265 else 266 ln -s .void_file arch.env 267 fi 268 # source architecture PATH and ENV files 269 source arch.env 270 source arch.path 271 else 272 echo "You must define a target architecture" 273 exit 1 274 fi 231 275 232 276 ########################################################################
Note: See TracChangeset
for help on using the changeset viewer.