Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from mantidproject/bugfix/10784_linux_startup…
…_scripts Re #10784. Removing links and regular files.
- Loading branch information
Showing
4 changed files
with
26 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 1 addition & 20 deletions
21
Code/Mantid/Build/CMake/Packaging/rpm/scripts/rpm_pre_uninstall.sh.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,6 @@ | ||
#!/bin/sh | ||
# | ||
# RPM pre-uninstall script | ||
# Remove links to mantidplot & /etc/profile.d | ||
# | ||
|
||
# Configured by CMake | ||
ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@ | ||
|
||
# Remove link and exe | ||
if [ -h $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot ]; then | ||
rm $RPM_INSTALL_PREFIX0/@BIN_DIR@/mantidplot | ||
fi | ||
if [ -f $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 | ||
rm /etc/profile.d/mantid.sh | ||
fi | ||
if [ -h /etc/profile.d/mantid.csh ]; then | ||
rm /etc/profile.d/mantid.csh | ||
fi | ||
fi | ||
# Nothing needs to be done |