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

Modify ubuntu install script fro lauch script rename

parent 963298ce
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,7 @@ case "$1" in
if [ -f @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot ]; then
mv @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot_exe
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
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
ln -s @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/mantidplot @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot
fi
fi
# Environment updates if required
......
......@@ -18,9 +18,6 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@
case "$1" in
install|upgrade)
# 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
rm @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot
fi
......
......@@ -21,9 +21,6 @@ ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@
case "$1" in
remove|upgrade|deconfigure)
# 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
rm @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/MantidPlot_exe
fi
......@@ -41,10 +38,10 @@ case "$1" in
fi
fi
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
......
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