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

link launch_mantidplot.sh back for uninstallers

parent 0d945433
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,10 @@ if [ -f $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
fi
# 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
ln -s $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot $RPM_INSTALL_PREFIX0/@BIN_DIR@/launch_mantidplot.sh
fi
fi
# Environment updates if required
......
......@@ -11,7 +11,9 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@
# and not upgraded. If launch_mantidplot.sh exists then package
# has been upgraded and MantidPlot_exe replaced so don't touch anything
if [ ! -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot ]; then
rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe
if [ -e $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe ]; then
rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/MantidPlot_exe
fi
if [ ${ENVVARS_ON_INSTALL} -eq 1 ]; then
if [ -h /etc/profile.d/mantid.sh ]; then
......
......@@ -13,6 +13,9 @@ fi
if [ -h $RPM_INSTALL_PREFIX0/@BIN_DIR@/Mantidplot ]; then
rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/Mantidplot
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
# 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