From dc14846276ac00f27431ad6642db832ae61b653b Mon Sep 17 00:00:00 2001 From: Jan Felix Langenbach Date: Tue, 3 Dec 2019 22:43:20 +0100 Subject: [PATCH] Symlink share directory on ghcup set Setting a default ghc version now creates a symlink from ~/.ghcup/ghc//share to ~/.ghcup/share so man can find the manpage of the set ghc. --- ghcup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghcup b/ghcup index a3ab95f..13facc7 100755 --- a/ghcup +++ b/ghcup @@ -1540,6 +1540,10 @@ set_ghc() { # shellcheck disable=SC2046 edo ln $(optionv "-v") -sf "haddock-ghc${target_suffix}" "${BIN_LOCATION}/haddock${target_suffix}" fi + if [ -n "${target_suffix}" ] && [ -f "${inst_location}/share" ] ; then + # shellcheck disable=SC2046 + edo ln $(optionv "-v") -sf ghc/"${myghcver}"/share "${BIN_LOCATION}/../share" + fi status_message "Done"