Fix installation of hpc (#8735)
authorAustin Seipp <austin@well-typed.com>
Thu, 13 Feb 2014 13:19:39 +0000 (07:19 -0600)
committerAustin Seipp <aseipp@pobox.com>
Mon, 17 Feb 2014 09:33:10 +0000 (03:33 -0600)
Signed-off-by: Austin Seipp <austin@well-typed.com>
(cherry picked from commit a365eabd465a1700f479f78ad99fc1a31915e639)

utils/hpc/ghc.mk
utils/hpc/hpc.wrapper [new file with mode: 0644]

index 7280729..f70be94 100644 (file)
@@ -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 (file)
index 0000000..22982ef
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "$executablename" ${1+"$@"}