summaryrefslogtreecommitdiff
path: root/rules/shell-wrapper.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-08-02 16:12:37 +0000
committerIan Lynagh <igloo@earth.li>2009-08-02 16:12:37 +0000
commit4a5569ff37ae771560e56b564f3b15477b828a79 (patch)
tree8ddeff4260f9cdcb62a527136c3bc804f7ffcb2c /rules/shell-wrapper.mk
parent6f476448854b3775b806b6a07a530aa2b70ea02f (diff)
downloadhaskell-4a5569ff37ae771560e56b564f3b15477b828a79.tar.gz
Fix permissions when installing
Diffstat (limited to 'rules/shell-wrapper.mk')
-rw-r--r--rules/shell-wrapper.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/shell-wrapper.mk b/rules/shell-wrapper.mk
index acdb06e72d..312504e278 100644
--- a/rules/shell-wrapper.mk
+++ b/rules/shell-wrapper.mk
@@ -57,8 +57,9 @@ install: install_$1_$2_wrapper
.PHONY: install_$1_$2_wrapper
install_$1_$2_wrapper: WRAPPER=$$(DESTDIR)$$(bindir)/$$($1_$2_INSTALL_SHELL_WRAPPER_NAME)
install_$1_$2_wrapper:
- "$$(MKDIRHIER)" $$(DESTDIR)$$(bindir)
+ $$(INSTALL_DIR) $$(DESTDIR)$$(bindir)
"$$(RM)" $$(RM_OPTS) $$(WRAPPER)
+ $$(CREATE_SCRIPT) $$(WRAPPER)
echo '#!$$(SHELL)' >> $$(WRAPPER)
echo 'executablename=$$(libexecdir)/$$($1_$2_PROG)' >> $$(WRAPPER)
echo 'datadir=$$(datadir)' >> $$(WRAPPER)