Commit 11ca8cdc authored by pcapriotti's avatar pcapriotti

Create versioned runghc wrapper (#5873)

parent 42de5409
......@@ -15,6 +15,7 @@ utils/runghc_dist-install_USES_CABAL = YES
utils/runghc_dist-install_PROG = runghc$(exeext)
utils/runghc_dist-install_SHELL_WRAPPER = YES
utils/runghc_dist-install_INSTALL_SHELL_WRAPPER = YES
utils/runghc_dist-install_INSTALL_SHELL_WRAPPER_NAME = runghc-$(ProjectVersion)
utils/runghc_dist-install_EXTRA_HC_OPTS = -cpp -DVERSION="\"$(ProjectVersion)\""
ifneq "$(BINDIST)" "YES"
......@@ -35,5 +36,7 @@ else
install_runhaskell:
$(call removeFiles,"$(DESTDIR)$(bindir)/runhaskell")
$(LN_S) runghc "$(DESTDIR)$(bindir)/runhaskell"
$(call removeFiles,"$(DESTDIR)$(bindir)/runghc")
$(LN_S) runghc-$(ProjectVersion) "$(DESTDIR)$(bindir)/runghc"
endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment