Skip to content

Commit

Permalink
Add profile links if requested in post install
Browse files Browse the repository at this point in the history
Refs #10271
  • Loading branch information
martyngigg committed Nov 25, 2014
1 parent 0b53a3a commit fa84dd3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ set -e
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

# Configured by cmake
ENVVARS_ON_INSTALL=@ENVVARS_ON_INSTALL_INT@

case "$1" in

configure)
Expand All @@ -35,6 +38,12 @@ case "$1" in
ln -s @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/launch_mantidplot.sh @CMAKE_INSTALL_PREFIX@/@BIN_DIR@/mantidplot
fi
fi
# Environment updates if required
if [ ${ENVVARS_ON_INSTALL} -eq 1 ]; then
# Link profiles to /etc/profile.d
ln -s @PKG_INSTALL_PREFIX@/@ETC_DIR@/mantid.sh /etc/profile.d/mantid.sh
ln -s @PKG_INSTALL_PREFIX@/@ETC_DIR@/mantid.csh /etc/profile.d/mantid.csh
fi
;;

abort-upgrade|abort-remove|abort-deconfigure)
Expand Down

0 comments on commit fa84dd3

Please sign in to comment.