Changeset 381 for XIOS/trunk/make_xios
- Timestamp:
- 10/23/12 09:00:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/make_xios
r377 r381 5 5 use_oasis="false" 6 6 job="1" 7 netcdf_lib="netcdf4_par" 8 compil_mode="prod" 7 9 8 10 # Traitement de la ligne de commande … … 14 16 echo "make_xios [options]" 15 17 echo "options :" 16 echo " [--prod] : compilation in production mode "18 echo " [--prod] : compilation in production mode (default)" 17 19 echo " [--dev] : compilation in development mode" 18 20 echo " [--debug] : compilation in debug mode" … … 23 25 echo " [--doc] : to generate Doxygen documentation (not available yet)" 24 26 echo " [--job ntasks] : to use parallel compilation with ntasks" 27 echo " [--netcdf_lib 'netcdf4_par'/'netcdf4_seq' : default netcdf4_par] : choice of netcdf library" 25 28 echo "Example : ./make_xios --prod --arch PW6_VARGAS" 26 29 echo "Example : ./make_xios --avail" … … 30 33 "--debug") compil_mode="debug" ; shift ;; 31 34 "--arch") arch=$2 ; shift ; shift ;; 32 "-- avail") ls arch/*.fcm | cut -d"-" -f2 | cut -d"." -f1 ; exit ;;35 "--") ls arch/*.fcm | cut -d"-" -f2 | cut -d"." -f1 ; exit ;; 33 36 "--full") compil_full="true" ; shift ;; 34 37 "--use_oasis") use_oasis="true" ; shift ;; 35 38 "--doc") doc="true" ; shift ;; 36 39 "--job") job=$2 ; shift ; shift ;; 40 "--netcdf_lib") netcdf_lib=$2 ; shift ; shift ;; 37 41 *) code="$1" ; shift ;; 38 42 esac … … 80 84 source $install_dir/arch.path 81 85 else 82 echo " Veuillez definir une architecture cible!"86 echo "Please choose a target achitecture --> list all available architecture using make_xios --avail!" 83 87 exit 1 84 88 fi … … 98 102 COMPIL_CFLAGS="%DEBUG_CFLAGS" 99 103 COMPIL_FFLAGS="%DEBUG_FFLAGS" 100 else 101 echo "Veuillez definir un mode de compilation [debug|dev|prod] !" 102 exit 1 104 fi 105 106 if [[ "$netcdf_lib" == "netcdf4_par" ]] 107 then 108 XMLIO_CPPKEY="$XMLIO_CPPKEY USING_NETCDF_PAR" 109 elif [[ "$netcdf_lib" == "netcdf4_seq" ]] 110 then 111 set nothing 112 else 113 echo "Bad choice for --netcdf_lib argument : choose between 'netcdf4_par' or 'netcdf4_seq'" 114 exit 103 115 fi 104 116 … … 124 136 echo "%ARCH_LD $XMLIO_LIB" >> config.fcm 125 137 126 echo "=> Activation du mode "$compil_mode" pour la distribution sous l'architecture \""$arch"\" !"138 echo "=> Using "$compil_mode" mode for compiling under architecture \""$arch"\" !" 127 139 128 140 # Création de la documentation doxygen. 129 141 if [[ !(-z $doc) ]] 130 142 then 131 echo -e "- Cr éation de la documentation de code doxygen (désactivée)..."143 echo -e "- Create Doxygen documentation (disabled)..." 132 144 #doxygen -s 133 145 fi
Note: See TracChangeset
for help on using the changeset viewer.