summaryrefslogtreecommitdiff
path: root/shell/Package_senddoc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'shell/Package_senddoc.mk')
-rw-r--r--shell/Package_senddoc.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/Package_senddoc.mk b/shell/Package_senddoc.mk
index c09c9670ecb2..3716b193dc83 100644
--- a/shell/Package_senddoc.mk
+++ b/shell/Package_senddoc.mk
@@ -9,6 +9,14 @@
$(eval $(call gb_Package_Package,shell_senddoc,$(SRCDIR)/shell/source/unix/misc))
+ifeq ($(OS), MACOSX)
+# only mach-o binaries allowed in bin folder (signing scripts would require extended attributes)
+# so install it into Resources folder and use a symlink instead
+# see https://developer.apple.com/library/archive/technotes/tn2206/_index.html
+$(eval $(call gb_Package_add_file,shell_senddoc,$(LIBO_SHARE_FOLDER)/senddoc,senddoc.sh))
+$(eval $(call gb_Package_add_symbolic_link,shell_senddoc,$(LIBO_BIN_FOLDER)/senddoc,../$(LIBO_SHARE_FOLDER)/senddoc))
+else
$(eval $(call gb_Package_add_file,shell_senddoc,$(LIBO_BIN_FOLDER)/senddoc,senddoc.sh))
+endif
# vim: set shiftwidth=4 tabstop=4 noexpandtab: