Skip to content
Snippets Groups Projects
Commit f4653bb9 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Change back the name of the mantidplot launcher script

parent 58a700e3
No related branches found
No related tags found
No related merge requests found
...@@ -250,7 +250,7 @@ if (ENABLE_MANTIDPLOT) ...@@ -250,7 +250,7 @@ if (ENABLE_MANTIDPLOT)
configure_file ( ${CMAKE_MODULE_PATH}/Packaging/launch_mantidplot.sh.in configure_file ( ${CMAKE_MODULE_PATH}/Packaging/launch_mantidplot.sh.in
${CMAKE_CURRENT_BINARY_DIR}/launch_mantidplot.sh.install @ONLY ) ${CMAKE_CURRENT_BINARY_DIR}/launch_mantidplot.sh.install @ONLY )
install ( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/launch_mantidplot.sh.install install ( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/launch_mantidplot.sh.install
DESTINATION ${BIN_DIR} RENAME mantidplot ) DESTINATION ${BIN_DIR} RENAME launch_mantidplot.sh )
endif () endif ()
if (PACKAGE_WORKBENCH) # will eventually switch to ENABLE_WORKBENCH if (PACKAGE_WORKBENCH) # will eventually switch to ENABLE_WORKBENCH
set ( MANTIDWORKBENCH_EXEC workbench ) # what the actual thing is called set ( MANTIDWORKBENCH_EXEC workbench ) # what the actual thing is called
......
...@@ -32,7 +32,10 @@ case "$1" in ...@@ -32,7 +32,10 @@ case "$1" in
if [ -f @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot ]; then if [ -f @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot ]; then
mv @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot_exe mv @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot_exe
if [ ! -s @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot ]; then if [ ! -s @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot ]; then
ln -s @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/mantidplot @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot ln -s @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/launch_mantidplot.sh @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot
fi
if [ ! -s @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/mantidplot ]; then
ln -s @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/launch_mantidplot.sh @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/mantidplot
fi fi
fi fi
# Environment updates if required # Environment updates if required
......
...@@ -18,6 +18,9 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@ ...@@ -18,6 +18,9 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@
case "$1" in case "$1" in
install|upgrade) install|upgrade)
# Remove stale links if left around # Remove stale links if left around
if [ -h @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/mantidplot ]; then
rm @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/mantidplot
fi
if [ -h @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot ]; then if [ -h @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot ]; then
rm @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot rm @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot
fi fi
......
...@@ -21,6 +21,9 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@ ...@@ -21,6 +21,9 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@
case "$1" in case "$1" in
remove|upgrade|deconfigure) remove|upgrade|deconfigure)
# Remove links and _exe in package directory # Remove links and _exe in package directory
if [ -h @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/mantidplot ]; then
rm @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/mantidplot
fi
if [ -f @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot_exe ]; then if [ -f @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot_exe ]; then
rm @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot_exe rm @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot_exe
fi fi
...@@ -38,10 +41,10 @@ case "$1" in ...@@ -38,10 +41,10 @@ case "$1" in
fi fi
fi fi
;; ;;
failed-upgrade) failed-upgrade)
;; ;;
*) *)
echo "prerm called with unknown argument \`$1'" >&2 echo "prerm called with unknown argument \`$1'" >&2
exit 1 exit 1
......
...@@ -10,11 +10,11 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@ ...@@ -10,11 +10,11 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@
if [ -f $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot ]; then if [ -f $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot ]; then
mv $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe mv $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe
if [ ! -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot ]; then if [ ! -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot ]; then
ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/launch_mantidplot.sh $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot
fi fi
# create link to old name so upgrading from old packages doesn't delete the executable # create link to old name so upgrading from old packages doesn't delete the executable
if [ ! -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/launch_mantidplot.sh ]; then if [ ! -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot ]; then
ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot $RPM_INSTALL_PREFIX0/@BIN_DIR@/launch_mantidplot.sh ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/launch_mantidplot.sh $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot
fi fi
fi fi
...@@ -26,7 +26,7 @@ if [ ${ENVVARS_ON_INSTALL} -eq 1 ]; then ...@@ -26,7 +26,7 @@ if [ ${ENVVARS_ON_INSTALL} -eq 1 ]; then
ln -s $RPM_INSTALL_PREFIX0/@ETC_DIR@/mantid.pth @PYTHON_SITE@/mantid.pth ln -s $RPM_INSTALL_PREFIX0/@ETC_DIR@/mantid.pth @PYTHON_SITE@/mantid.pth
else else
# symbolic links in world's path of mantidplot # symbolic links in world's path of mantidplot
if [ -f $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot ]; then if [ -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot ]; then
if [ ! -L /usr/bin/mantidplot@CPACK_PACKAGE_SUFFIX@ ]; then if [ ! -L /usr/bin/mantidplot@CPACK_PACKAGE_SUFFIX@ ]; then
ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot /usr/bin/mantidplot@CPACK_PACKAGE_SUFFIX@ ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot /usr/bin/mantidplot@CPACK_PACKAGE_SUFFIX@
fi fi
...@@ -36,7 +36,7 @@ else ...@@ -36,7 +36,7 @@ else
ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidpython /usr/bin/mantidpython@CPACK_PACKAGE_SUFFIX@ ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidpython /usr/bin/mantidpython@CPACK_PACKAGE_SUFFIX@
fi fi
# link the workbench if it exists # link the workbench if it exists
if [ -f $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidworkbench ]; then if [ -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidworkbench ]; then
if [ ! -L /usr/bin/mantidworkbench@CPACK_PACKAGE_SUFFIX@ ]; then if [ ! -L /usr/bin/mantidworkbench@CPACK_PACKAGE_SUFFIX@ ]; then
ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidworkbench /usr/bin/mantidworkbench@CPACK_PACKAGE_SUFFIX@ ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidworkbench /usr/bin/mantidworkbench@CPACK_PACKAGE_SUFFIX@
fi fi
......
...@@ -10,7 +10,7 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@ ...@@ -10,7 +10,7 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@
# Remove exe and links only if it looks like we were removed # Remove exe and links only if it looks like we were removed
# and not upgraded. If launch_mantidplot.sh exists then package # and not upgraded. If launch_mantidplot.sh exists then package
# has been upgraded and MantidPlot_exe replaced so don't touch anything # has been upgraded and MantidPlot_exe replaced so don't touch anything
if [ ! -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot ]; then if [ ! -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/launch_mantidplot.sh ]; then
if [ -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe ]; then if [ -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe ]; then
rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe
fi fi
......
...@@ -13,9 +13,6 @@ fi ...@@ -13,9 +13,6 @@ fi
if [ -h $RPM_INSTALL_PREFIX0/@BIN_DIR@/Mantidplot ]; then if [ -h $RPM_INSTALL_PREFIX0/@BIN_DIR@/Mantidplot ]; then
rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/Mantidplot rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/Mantidplot
fi fi
if [ -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/launch_mantidplot.sh ]; then
rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/launch_mantidplot.sh
fi
if [ ${ENVVARS_ON_INSTALL} -eq 1 ]; then if [ ${ENVVARS_ON_INSTALL} -eq 1 ]; then
# Profiles # Profiles
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment