summaryrefslogtreecommitdiff
path: root/driver/ghci
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-18 12:25:16 +0000
committerIan Lynagh <igloo@earth.li>2008-09-18 12:25:16 +0000
commit36cc8411d5d13cf52b478ca92213190a84d6561f (patch)
treebe016b035fa6f6934afb924b892f6d80fdb2f5da /driver/ghci
parent5045af3106f3d1e3cb223c254af2de6a8a265797 (diff)
downloadhaskell-36cc8411d5d13cf52b478ca92213190a84d6561f.tar.gz
Make the ghci scripts point to the versioned GHC program, not just "ghc"
Diffstat (limited to 'driver/ghci')
-rw-r--r--driver/ghci/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/ghci/Makefile b/driver/ghci/Makefile
index 789aec0c21..4f5538b6d4 100644
--- a/driver/ghci/Makefile
+++ b/driver/ghci/Makefile
@@ -21,7 +21,7 @@ GHCII_SCRIPT=$(DESTDIR)$(bindir)/ghcii.sh
install::
$(RM) -f $(GHCII_SCRIPT)
echo "#!$(SHELL)" >> $(GHCII_SCRIPT)
- echo 'exec "$$0"/../ghc --interactive $${1+"$$@"}' >> $(GHCII_SCRIPT)
+ echo 'exec "$$0"/../ghc-$(ProjectVersion) --interactive $${1+"$$@"}' >> $(GHCII_SCRIPT)
chmod +x $(GHCII_SCRIPT)
else
LINK = ghci
@@ -30,7 +30,7 @@ INSTALLED_SCRIPT=$(DESTDIR)$(bindir)/$(LINK_TARGET)
install::
$(RM) -f $(INSTALLED_SCRIPT)
echo "#!$(SHELL)" >> $(INSTALLED_SCRIPT)
- echo 'exec $(bindir)/ghc --interactive $${1+"$$@"}' >> $(INSTALLED_SCRIPT)
+ echo 'exec $(bindir)/ghc-$(ProjectVersion) --interactive $${1+"$$@"}' >> $(INSTALLED_SCRIPT)
$(EXECUTABLE_FILE) $(INSTALLED_SCRIPT)
endif