From 295851beb23bb786144ef921adaf261579993752 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Sat, 25 Feb 2012 00:00:15 +0000 Subject: [PATCH] replaced bash-symlinks with forward script --- tools/rosbash/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/rosbash/CMakeLists.txt b/tools/rosbash/CMakeLists.txt index d8ccbd4a..e1c3f804 100644 --- a/tools/rosbash/CMakeLists.txt +++ b/tools/rosbash/CMakeLists.txt @@ -4,10 +4,12 @@ install(FILES rosbash rostcsh roszsh DESTINATION share/rosbash) install(PROGRAMS scripts/rosrun DESTINATION bin) -if(NOT EXISTS ${CMAKE_BINARY_DIR}/bin/rosrun) - message(STATUS " Making toplevel symlink for bash script rosrun") - execute_process(COMMAND /bin/ln -sf ${CMAKE_CURRENT_SOURCE_DIR}/scripts/rosrun ${CMAKE_BINARY_DIR}/bin/rosrun) -endif() + +message(STATUS " Making toplevel forward script for bash script rosrun") +set(BASH_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/scripts/rosrun) +configure_file(${catkin_EXTRAS_DIR}/templates/script.bash.in + ${CMAKE_BINARY_DIR}/bin/rosrun + @ONLY) catkin_add_env_hooks(15.rosbash SHELLS bash zsh