- Timestamp:
- Jan 25, 2023, 12:40:21 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r4375 r4398 238 238 "-debug") optim=-debug ; shift ;; 239 239 "-name") MODEL=$2 ; shift ; shift ;; 240 "-netcdf") netcdf=$2 ; shift ; shift ;; 240 "-netcdf") case $2 in 241 0|1) netcdf=$2 ;; 242 *) netcdf=`ls -d $2` ; if [ $? != 0 ] ; then echo No directory $2 ; exit 1 ; fi 243 esac 244 shift ; shift ;; 241 245 "-physiq") physiq=$2 ; shift ; shift ;; 242 246 "-xios") with_xios="y" ; shift ;; … … 445 449 OPTPREC="$OPT_GPROF" 446 450 ARFLAGS="rs" 447 if [ -f /etc/issue ] ; then 448 if [ "`grep -i ubuntu /etc/issue`" != "" ] ; then 449 if [ "`grep -i ubuntu /etc/issue | awk ' { print $2 } ' | cut -d. -f1`" -ge 16 ] 450 then 451 ARFLAGS="rU" 452 fi 453 fi 454 fi 455 456 451 if [ "`lsb_release -i -s`" = "Unbuntu" ] ; then 452 if [ "`lsb_release -r -s | cut -d. -f1`" -ge 16 ] ; then 453 ARFLAGS="rU" 454 fi 455 fi 457 456 458 457 if [ "$compiler" = "$gfortran" ] ; then
Note: See TracChangeset
for help on using the changeset viewer.