+ fprintf(OUT,
+ "if test \"${MACHINES+set}\" != set; then \n"
+ " export MACHINES='");
+ xbt_dict_foreach(machine_set,cursor,key,data) {
+ fprintf(OUT, "%s ",key);
+ }
+ fprintf(OUT,
+ "';\n"
+ "fi\n"
+ "if test \"${INSTALL_PATH+set}\" != set; then \n"
+ " export INSTALL_PATH='`echo $HOME`/tmp/src'\n"
+ "fi\n"
+ "if test \"${GRAS_ROOT+set}\" != set; then \n"
+ " export GRAS_ROOT='`echo $INSTALL_PATH`'\n"
+ "fi\n"
+ "if test \"${SRCDIR+set}\" != set; then \n"
+ " export SRCDIR=./\n"
+ "fi\n"
+ "if test \"${SIMGRID_URL+set}\" != set; then \n"
+ " export SIMGRID_URL=http://gcl.ucsd.edu/simgrid/dl/\n"
+ "fi\n"
+ "if test \"${SIMGRID_VERSION+set}\" != set; then \n"
+ " export SIMGRID_VERSION=2.91\n"
+ "fi\n"
+ "if test \"${GRAS_PROJECT+set}\" != set; then \n"
+ " export GRAS_PROJECT=%s\n"
+ "fi\n"
+ "if test \"${GRAS_PROJECT_URL+set}\" != set; then \n"
+ " export GRAS_PROJECT_URL=http://www-id.imag.fr/Laboratoire/Membres/Legrand_Arnaud/gras_test/\n"
+ "fi\n"
+ "\n"
+ "test -e runlogs/ || mkdir -p runlogs/\n",
+ project);
+
+ fprintf(OUT,
+ "cmd_prolog=\"env INSTALL_PATH=$INSTALL_PATH GRAS_ROOT=$GRAS_ROOT \\\n"
+ " SIMGRID_URL=$SIMGRID_URL SIMGRID_VERSION=$SIMGRID_VERSION GRAS_PROJECT=$GRAS_PROJECT \\\n"
+ " GRAS_PROJECT_URL=$GRAS_PROJECT_URL LD_LIBRARY_PATH=$GRAS_ROOT/lib/ sh -c \";\n");
+
+ xbt_dynar_foreach (process_list,cpt,proc) {
+ fprintf(OUT,"cmd=\"\\$INSTALL_PATH/gras-%s/"RL_BINARYNAME" ",project,project,proc.argv[0]);
+ for(i=1;i<proc.argc;i++) {
+ fprintf(OUT,"%s ",proc.argv[i]);
+ }
+ fprintf(OUT,"\";\n");
+ fprintf(OUT,"ssh %s \"$cmd_prolog 'export LD_LIBRARY_PATH=\\$INSTALL_PATH/lib:\\$LD_LIBRARY_PATH; echo \\\"$cmd\\\" ; $cmd 2>&1'\" > runlogs/%s_%d.log &\n",proc.host,proc.host,cpt);
+ }