summaryrefslogtreecommitdiff
path: root/Makefile.bundle.in
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2008-10-16 13:02:15 +0000
committertruebrain <truebrain@openttd.org>2008-10-16 13:02:15 +0000
commitb6ca10b05a316b801908cde1fe7de2f4236f6fb8 (patch)
treefcf382fae49914df2018af455bc032608485a84c /Makefile.bundle.in
parent098c3b817e904feadd95b638a4813ca1af5af691 (diff)
downloadopenttd-b6ca10b05a316b801908cde1fe7de2f4236f6fb8.tar.xz
(svn r14477) -Fix r14474: also name the links in the .desktop file correclty upon install
Diffstat (limited to 'Makefile.bundle.in')
-rw-r--r--Makefile.bundle.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.bundle.in b/Makefile.bundle.in
index f685c342c..66ee9c9e9 100644
--- a/Makefile.bundle.in
+++ b/Makefile.bundle.in
@@ -71,6 +71,7 @@ endif
$(Q)cp "$(ROOT_DIR)/media/openttd."*.png "$(BUNDLE_DIR)/media/"
ifdef MENU_DIR
$(Q)cp "$(ROOT_DIR)/media/openttd.desktop" "$(BUNDLE_DIR)/media/"
+ $(Q)cat "$(ROOT_DIR)/media/openttd.desktop" | sed s/=openttd/=$(BINARY_NAME)/g > "$(ROOT_DIR)/media/openttd.desktop.install"
endif
ifeq ($(shell if test -n "`ls -l \"$(BIN_DIR)/scenario/\"*.scn 2> /dev/null`"; then echo 1; fi), 1)
$(Q)cp "$(BIN_DIR)/scenario/"*.scn "$(BUNDLE_DIR)/scenario/"
@@ -175,7 +176,7 @@ ifdef MAN_DIR
endif
ifdef MENU_DIR
$(Q)install -d "$(INSTALL_MENU_DIR)"
- $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.desktop" "$(INSTALL_MENU_DIR)/${BINARY_NAME}.desktop"
+ $(Q)install -m 644 "$(ROOT_DIR)/media/openttd.desktop.install" "$(INSTALL_MENU_DIR)/${BINARY_NAME}.desktop"
endif
$(Q)cp -R "$(BUNDLE_DIR)/scenario" "$(INSTALL_DATA_DIR)"
endif # OSXAPP