Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
We don't use txt deployment files since a long while
[simgrid.git] / tools / gras / stub_generator.c
index c7f4cde..b7574b9 100644 (file)
@@ -168,7 +168,7 @@ static void generate_sim(char *project)
                     "  /*  Simulation setup */\n" 
                      "  MSG_global_init(&argc,argv);\n" 
                      "  if (argc != 3) {\n" 
-                     "    fprintf(stderr, \"Usage: %s platform_file application_description.txt [--gras-log=...]\\n\",argv[0]);\n" 
+                     "    fprintf(stderr, \"Usage: %s platform.xml deployment.xml [--gras-log=...]\\n\",argv[0]);\n" 
                      "    exit(1);\n" 
                      "  }\n"
                      "\n");
@@ -308,7 +308,12 @@ static void generate_makefile_local(char *project, char *deployment)
   xbt_assert1(OUT, "Unable to open %s for writing",filename);
   free(filename);
    
-//  fprintf(OUT, "############ PROJECT COMPILING AND ARCHIVING #########\n");
+  fprintf(OUT,
+         "\n"
+         "####\n"
+         "#### THIS FILE WAS GENERATED, DO NOT EDIT BEFORE RENAMING IT\n"
+         "####\n\n\n");
+
   fprintf(OUT,"## Variable declarations\n"
               "PROJECT_NAME=%s\n"
              "DISTDIR=gras-$(PROJECT_NAME)\n\n"