Changeset 1621


Ignore:
Timestamp:
Apr 4, 2012, 1:07:02 PM (13 years ago)
Author:
Ehouarn Millour
Message:

Updated install.sh script to also build the 'rebuild' utility, when it is available (which is the case with latest updated versions of modipsl.* sources; i.e. those derived from 'modipsl.v7').
EM

Location:
BOL/script_install
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/LISMOI

    r1589 r1621  
    1717
    1818Le script peut aussi etre recuperer avec wget :
    19 > wget http://web.lmd.jussieu.fr/trac/browser/BOL/script_install/install.sh
    20 
     19> wget http://web.lmd.jussieu.fr/trac/browser/BOL/script_install/install.sh?format=txt -O install.sh
     20> chmod +x install.sh
     21> ./install.sh
    2122
    2223Les versions disponibles :
     
    23123220111007.trunk -> Revision SVN 1576
    23223320111103.trunk -> Revision SVN 1578 first version including FCM
     23420111126.trunk -> Revision SVN 1592
     23520120203.trunk -> Revision SVN 1614
     23620120327.trunk -> Revision SVN 1619 first version including rebuild utility
  • BOL/script_install/install.sh

    r1590 r1621  
    288288sed -e "s:F_L = g95:F_L = $compilo:" -e "s:F_C = g95 -c:F_C = $compilo -c": \
    289289-e 's/g95.*.w_w.*.(F_D)/g95      w_w = '"$OPTIMGCM"'/' \
    290 -e 's:g95.*.NCDF_INC.*.$:g95      NCDF_INC='"$ncdfdir"'/include:' \
    291 -e 's:g95.*.NCDF_LIB.*.$:g95      NCDF_LIB='"$ncdfdir"'/lib:' \
     290-e 's:g95.*.NCDF_INC.*.$:g95      NCDF_INC= '"$ncdfdir"'/include:' \
     291-e 's:g95.*.NCDF_LIB.*.$:g95      NCDF_LIB= -L'"$ncdfdir"'/lib -lnetcdf:' \
    292292-e "s:-fmod=:-$fmod:" -e 's/-fno-second-underscore//' \
    293293-e 's:#-Q- g95      M_K = gmake:#-Q- g95      M_K = make:' \
     
    319319fi
    320320if [ "$pclinux" = 1 ] ; then
     321  # Build IOIPSL modules and library
    321322  make clean
    322323  make
    323324  if [ $compilo = gfortran ] ; then # copy module files to lib
    324325    cp -f *.mod ../../../lib
     326  fi
     327  # Build IOIPSL tools (ie: "rebuild", if present)
     328  if [ -f $MODEL/modipsl/modeles/IOIPSL/tools/rebuild ] ; then
     329    cd $MODEL/modipsl/modeles/IOIPSL/tools
     330    # adapt Makefile & rebuild script if in bash
     331    if [ "$use_shell" = "bash" ] ; then
     332      cp Makefile Makefile.ksh
     333      sed -e s:/bin/ksh:/bin/bash:g Makefile.ksh > Makefile
     334      cp rebuild rebuild.ksh
     335      sed -e 's:/bin/ksh:/bin/bash:g' \
     336          -e 's:print -u2:echo:g' \
     337          -e 's:print:echo:g' rebuild.ksh > rebuild
     338    fi
     339    make clean
     340    make
    325341  fi
    326342else
Note: See TracChangeset for help on using the changeset viewer.