Changeset 2165 for BOL


Ignore:
Timestamp:
Dec 5, 2014, 5:20:28 PM (10 years ago)
Author:
Laurent Fairhead
Message:

Rajout d'un test pour savoir si il faut faire un svn upgrade sur ORCHIDEE pour determiner
la release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install.sh

    r2164 r2165  
    423423  export ORCHPATH=`pwd`
    424424  orchidee_rev=`svn info | grep '^Revision' | awk '{print $2}'`
     425  if [ -z $orchidee_rev ] ; then
     426    svn info 2 >| err
     427    grep 'svn upgrade' err > /dev/null
     428    if [ $? -eq 0 ] ; then
     429      svn upgrade
     430      orchidee_rev=`svn info | grep '^Revision' | awk '{print $2}'`
     431    else
     432      echo "Impossible de determiner la version d'ORCHIDEE"
     433      echo "Continuer (o/y/n) ?"
     434      read reponse
     435      if [ $reponse != 'o' ] && [ $reponse != 'y' ] ; then
     436        exit
     437      fi
     438    fi
     439  fi   
    425440  echo '########################################################'
    426441  echo 'Orchidee revision: ', $orchidee_rev
Note: See TracChangeset for help on using the changeset viewer.