From 61c02f05a95bd8c07884de86ee356549989eb8d0 Mon Sep 17 00:00:00 2001 From: Thomas Moulard <thomas.moulard@gmail.com> Date: Tue, 28 Sep 2010 03:42:28 +0200 Subject: [PATCH] Fix shell.sh.cmake. Add missing sheebang and generate file in a temporary directory. This is a quick hack as there is no reason that the current directory would be writeable for the user. --- tools/shell.sh.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/shell.sh.cmake b/tools/shell.sh.cmake index b70a95e6..a01b0d6a 100644 --- a/tools/shell.sh.cmake +++ b/tools/shell.sh.cmake @@ -1,4 +1,5 @@ +#! /bin/sh echo "-- Launching dynamic-graph C shell with default plugins" -echo "loadPlugin ${CMAKE_INSTALL_PREFIX}/lib/plugin/shell-functions.so" > ./default_script -echo "loadPlugin ${CMAKE_INSTALL_PREFIX}/lib/plugin/shell-procedure.so" >> ./default_script -${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}/test_shell default_script \ No newline at end of file +echo "loadPlugin ${CMAKE_INSTALL_PREFIX}/lib/plugin/shell-functions.so" > /tmp/default_script +echo "loadPlugin ${CMAKE_INSTALL_PREFIX}/lib/plugin/shell-procedure.so" >> /tmp/default_script +${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}/test_shell /tmp/default_script -- GitLab