summaryrefslogtreecommitdiff
path: root/utils/hpc
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-02-13 07:19:39 -0600
committerAustin Seipp <austin@well-typed.com>2014-02-17 01:46:04 -0600
commita365eabd465a1700f479f78ad99fc1a31915e639 (patch)
treedc847e53ed7384bfa3b7757095ca8b9227e6fb23 /utils/hpc
parent2d5372cfdc2236a77ec49df249f3379b93224e06 (diff)
downloadhaskell-a365eabd465a1700f479f78ad99fc1a31915e639.tar.gz
Fix installation of hpc (#8735)
Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'utils/hpc')
-rw-r--r--utils/hpc/ghc.mk3
-rw-r--r--utils/hpc/hpc.wrapper2
2 files changed, 5 insertions, 0 deletions
diff --git a/utils/hpc/ghc.mk b/utils/hpc/ghc.mk
index 7280729675..f70be94599 100644
--- a/utils/hpc/ghc.mk
+++ b/utils/hpc/ghc.mk
@@ -15,4 +15,7 @@ utils/hpc_PACKAGE = hpc-bin
utils/hpc_dist-install_INSTALL = YES
utils/hpc_dist-install_INSTALL_INPLACE = YES
utils/hpc_dist-install_PROGNAME = hpc
+utils/hpc_dist-install_SHELL_WRAPPER = YES
+utils/hpc_dist-install_INSTALL_SHELL_WRAPPER_NAME = hpc
+
$(eval $(call build-prog,utils/hpc,dist-install,1))
diff --git a/utils/hpc/hpc.wrapper b/utils/hpc/hpc.wrapper
new file mode 100644
index 0000000000..22982ef0f8
--- /dev/null
+++ b/utils/hpc/hpc.wrapper
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "$executablename" ${1+"$@"}