1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #!/bin/bash
- echo "##################"
- echo "Release you want :"
- echo "##################"
- repertoirdebase=`pwd`
- PS3='> ' # le prompt
- COMPIL=("3.2.2" "dev" "primavera" "trunk" "3.2.3")
- select CHOIX in "${COMPIL[@]}" ; do
- case $REPLY in
- 1)
- TAG="ecearth_$CHOIX"
- echo ""
- ;;
- 2)
- TAG="ecearth_$CHOIX"
- CHOIX="3.2.2"
- echo ""
- ;;
- 3)
- TAG="ecearth_$CHOIX"
- echo ""
- ;;
- 4)
- TAG="ecearth"
- cp $CHOIX/runtime/classic/ctrl/namelist.nemo-ORCA1L75-coupled.cfg.sh $HOME/modeles/ecearth/runtime/classic/ctrl
- echo ""
- ;;
- 5)
- TAG="ecearth_$CHOIX"
- echo ""
- ;;
- esac
- break
- done
- TARGET="$HOME/modeles/$TAG"
- case "$CHOIX" in
- *3.2.3*)
- echo "New 3.2.3 release"
- cp $CHOIX/sources/config-build.xml $TARGET/sources/config-build.xml
- cp $CHOIX/sources/zenobe-intelmpi.xml $TARGET/sources/platform
- cp $CHOIX/sources/lemaitre3-intelmpi.xml $TARGET/sources/platform
- #
- cp $CHOIX/runtime/classic/config-run.xml $TARGET/runtime/classic/config-run.xml
- cp $CHOIX/runtime/classic/zenobe-intelmpi.xml $TARGET/runtime/classic/platform
- cp $CHOIX/runtime/classic/lemaitre3-intelmpi.xml $TARGET/runtime/classic/platform
- ;;
- *)
- cp $CHOIX/sources/config-build.xml $TARGET/sources/config-build.xml
- #
- cp $CHOIX/runtime/classic/config-run.xml $TARGET/runtime/classic/config-run.xml
- ;;
- esac
- machine=`uname --nodename`
- case "$machine" in
- *lm3*)
- echo "Lemaitre3"
- cp $CHOIX/sources/nemo_lemaitre3_arch-ecconf.fcm.tmpl $TARGET/sources/nemo-3.6/ARCH/arch-ecconf.fcm.tmpl
- cp $CHOIX/sources/runoff-mapper_lemaitre3_Makefile.tmpl $TARGET/sources/runoff-mapper/src/Makefile.tmpl
- cp $CHOIX/runtime/classic/platform/lemaitre3.cfg.tmpl $TARGET/runtime/classic/platform/lemaitre3.cfg.tmpl
- cat $CHOIX/runtime/classic/lemaitre3.sh.tmpl > $TARGET/runtime/classic/ece-ifs+nemo.sh.tmpl
- cat $CHOIX/runtime/classic/ece-ifs+nemo.sh.tmpl >> $TARGET/runtime/classic/ece-ifs+nemo.sh.tmpl
- ;;
- *zenobe*)
- echo "Zenobe"
- cp $CHOIX/runtime/classic/platform/zenobe.cfg.tmpl $TARGET/runtime/classic/platform/zenobe.cfg.tmpl
- cat $CHOIX/runtime/classic/zenobe.sh.tmpl > $TARGET/runtime/classic/ece-ifs+nemo.sh.tmpl
- cat $CHOIX/runtime/classic/ece-ifs+nemo.sh.tmpl >> $TARGET/runtime/classic/ece-ifs+nemo.sh.tmpl
- ;;
- *frontal*)
- echo "Zenobe"
- cp $CHOIX/runtime/classic/platform/zenobe.cfg.tmpl $TARGET/runtime/classic/platform/zenobe.cfg.tmpl
- cat $CHOIX/runtime/classic/zenobe.sh.tmpl > $TARGET/runtime/classic/ece-ifs+nemo.sh.tmpl
- cat $CHOIX/runtime/classic/ece-ifs+nemo.sh.tmpl >> $TARGET/runtime/classic/ece-ifs+nemo.sh.tmpl
- ;;
- *)
- echo "Unknown machine"
- ;;
- esac
- echo "Patch applied to ${TARGET}."
|