Index: /BOL/script_install/LISMOI
===================================================================
--- /BOL/script_install/LISMOI	(revision 1620)
+++ /BOL/script_install/LISMOI	(revision 1621)
@@ -17,6 +17,7 @@
 
 Le script peut aussi etre recuperer avec wget :
-> wget http://web.lmd.jussieu.fr/trac/browser/BOL/script_install/install.sh
-
+> wget http://web.lmd.jussieu.fr/trac/browser/BOL/script_install/install.sh?format=txt -O install.sh
+> chmod +x install.sh
+> ./install.sh
 
 Les versions disponibles :
@@ -231,2 +232,5 @@
 20111007.trunk -> Revision SVN 1576
 20111103.trunk -> Revision SVN 1578 first version including FCM
+20111126.trunk -> Revision SVN 1592
+20120203.trunk -> Revision SVN 1614
+20120327.trunk -> Revision SVN 1619 first version including rebuild utility 
Index: /BOL/script_install/install.sh
===================================================================
--- /BOL/script_install/install.sh	(revision 1620)
+++ /BOL/script_install/install.sh	(revision 1621)
@@ -288,6 +288,6 @@
 sed -e "s:F_L = g95:F_L = $compilo:" -e "s:F_C = g95 -c:F_C = $compilo -c": \
 -e 's/g95.*.w_w.*.(F_D)/g95      w_w = '"$OPTIMGCM"'/' \
--e 's:g95.*.NCDF_INC.*.$:g95      NCDF_INC='"$ncdfdir"'/include:' \
--e 's:g95.*.NCDF_LIB.*.$:g95      NCDF_LIB='"$ncdfdir"'/lib:' \
+-e 's:g95.*.NCDF_INC.*.$:g95      NCDF_INC= '"$ncdfdir"'/include:' \
+-e 's:g95.*.NCDF_LIB.*.$:g95      NCDF_LIB= -L'"$ncdfdir"'/lib -lnetcdf:' \
 -e "s:-fmod=:-$fmod:" -e 's/-fno-second-underscore//' \
 -e 's:#-Q- g95      M_K = gmake:#-Q- g95      M_K = make:' \
@@ -319,8 +319,24 @@
 fi
 if [ "$pclinux" = 1 ] ; then
+  # Build IOIPSL modules and library
   make clean
   make
   if [ $compilo = gfortran ] ; then # copy module files to lib
     cp -f *.mod ../../../lib
+  fi
+  # Build IOIPSL tools (ie: "rebuild", if present)
+  if [ -f $MODEL/modipsl/modeles/IOIPSL/tools/rebuild ] ; then
+    cd $MODEL/modipsl/modeles/IOIPSL/tools
+    # adapt Makefile & rebuild script if in bash
+    if [ "$use_shell" = "bash" ] ; then
+      cp Makefile Makefile.ksh
+      sed -e s:/bin/ksh:/bin/bash:g Makefile.ksh > Makefile
+      cp rebuild rebuild.ksh
+      sed -e 's:/bin/ksh:/bin/bash:g' \
+          -e 's:print -u2:echo:g' \
+          -e 's:print:echo:g' rebuild.ksh > rebuild
+    fi
+    make clean
+    make
   fi
 else
