X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ff7c02a39d0d8b10430509c322578e293fee8215..485a5ec02aa2f8c667ab99f1d556e1851a99cc07:/buildtools/Cmake/Distrib.cmake diff --git a/buildtools/Cmake/Distrib.cmake b/buildtools/Cmake/Distrib.cmake index 0a4e8d4f98..e1968f93aa 100644 --- a/buildtools/Cmake/Distrib.cmake +++ b/buildtools/Cmake/Distrib.cmake @@ -76,20 +76,12 @@ endforeach(file ${install_HEADERS}) # example files foreach(file ${examples_to_install_in_doc}) - string(REPLACE "${CMAKE_HOME_DIRECTORY}/examples/" "" file ${file}) + string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/examples/" "" file ${file}) get_filename_component(location ${file} PATH) install(FILES "examples/${file}" DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/doc/simgrid/examples/${location}) endforeach(file ${examples_to_install_in_doc}) -# example README -foreach(file ${README_examples_files}) - string(REPLACE "${CMAKE_HOME_DIRECTORY}/examples/" "" file ${file}) - get_filename_component(location ${file} PATH) - install(FILES "examples/${file}" - DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/doc/simgrid/examples/${location}) -endforeach(file ${README_examples_files}) - # bindings cruft if(HAVE_LUA) @@ -338,7 +330,7 @@ WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" ### Fill in the "make sync-gforge" target ### ############################################# -add_custom_target(sync-gforge +add_custom_target(sync-gforge-doc COMMAND chmod g+rw -R doc/ COMMAND chmod a+rX -R doc/ COMMAND rsync --verbose --cvs-exclude --compress --delete --delete-excluded --rsh=ssh --ignore-times --recursive --links --perms --times --omit-dir-times doc/html/ scm.gforge.inria.fr:/home/groups/simgrid/htdocs/doc/ || true @@ -346,5 +338,10 @@ COMMAND scp doc/index.php doc/webcruft/robots.txt scm.gforge.inria.fr:/home/grou COMMAND scp doc/html/simgrid_modules2.png doc/html/simgrid_modules.png doc/webcruft/simgrid_logo.png doc/webcruft/simgrid_logo_small.png scm.gforge.inria.fr:/home/groups/simgrid/htdocs/ WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" ) +add_custom_target(sync-gforge-dtd +COMMAND scp src/surf/simgrid.dtd scm.gforge.inria.fr:/home/groups/simgrid/htdocs/ +WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" +) + include(CPack)