Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Be sure we can execute this script.
[simgrid.git] / buildtools / Cmake / src / CMakeMaintainerMode.txt
index f71d198..560b7c2 100644 (file)
@@ -109,19 +109,12 @@ if(PERL_EXE)
 
        #$(TEST_UNITS): $(TEST_CFILES)
        string(REPLACE ";" " " USE_TEST_CFILES "${TEST_CFILES}")
+       exec_program("chmod a=rwx ${PROJECT_DIRECTORY}/tools/sg_unit_extractor.pl" "${PROJECT_DIRECTORY}/src/")
        exec_program("${PROJECT_DIRECTORY}/tools/sg_unit_extractor.pl ${USE_TEST_CFILES}" "${PROJECT_DIRECTORY}/src/")
 
        #@builddir@/simgrid_units_main.c: $(TEST_UNITS)
        exec_program("${PROJECT_DIRECTORY}/tools/sg_unit_extractor.pl ${PROJECT_DIRECTORY}/src/xbt/cunit.c" "${PROJECT_DIRECTORY}/src/")
 
-       #clean-units:
-       foreach(file ${TEST_UNITS})
-               exec_program("echo ${file}|sed -e 's|.c$$|.Po|' -e 's|[^/]*/||' -e 's|^|.deps/|'" "${PROJECT_DIRECTORY}/src/" OUTPUT_VARIABLE dep)
-               exec_program("echo \"Removing dependency tracker of ${file} (${dep} ${PROJECT_DIRECTORY}/src/${dep})\"" OUTPUT_VARIABLE OKITOKI)
-               message("${OKITOKI}")
-               exec_program("rm -vf ${dep} ${PROJECT_DIRECTORY}/src/${dep}" "${PROJECT_DIRECTORY}/src/" OUTPUT_VARIABLE OKITOKI)
-               exec_program("touch ${dep}" "${PROJECT_DIRECTORY}/src/" OUTPUT_VARIABLE OKITOKI)
-       endforeach(file ${TEST_UNITS})
 else(PERL_EXE)
        message(FATAL_ERROR "Install perl before use maintainer mode")
 endif(PERL_EXE)
@@ -129,6 +122,7 @@ message("")
 message("________________________________________________________________________________")
 message("________________________________________________________________________________ SG_UNIT_EXTRACTOR END")
 
+#Those lines permit to remake a cmake configure if "sources to look" have been changed
 foreach(file ${SRC_TO_LOOK})
        configure_file(${file} ${file} COPYONLY)
 endforeach(file ${SRC_TO_LOOK})