shithub: choc

Download patch

ref: e4e5387b31550cd771b0ae77db18a2914a82688a
parent: d0874f317888f9a05fd6783c9c9466ce83b148ca
author: Simon Howard <fraggle@gmail.com>
date: Sun Sep 15 19:37:13 EDT 2013

Name OS X CMDLINE.game files as CMDLINE-game, so that they are not
considered as invalid file extensions.

Subversion-branch: /branches/v2-branch
Subversion-revision: 2656

--- a/pkg/osx/GNUmakefile
+++ b/pkg/osx/GNUmakefile
@@ -99,9 +99,10 @@
 	mkdir -p "$(APP_BIN_DIR)/man/man5" "$(APP_BIN_DIR)/man/man6"
 	cp $(TOPLEVEL)/man/*.5 "$(APP_BIN_DIR)/man/man5"
 	cp $(TOPLEVEL)/man/*.6 "$(APP_BIN_DIR)/man/man6"
-	cp $(TOPLEVEL)/man/CMDLINE.doom $(TOPLEVEL)/man/CMDLINE.heretic \
-	   $(TOPLEVEL)/man/CMDLINE.hexen $(TOPLEVEL)/man/CMDLINE.strife \
-	   "$(APP_DOC_DIR)"
+	for game in doom heretic hexen strife; do       \
+		cp $(TOPLEVEL)/man/CMDLINE.$$game       \
+		   "$(APP_DOC_DIR)/CMDLINE-$$game";     \
+	done
 	cp disk/dir.DS_Store $(STAGING_DIR)/.DS_Store
 	cp disk/background.png $(STAGING_DIR)/background.png
 
--- a/pkg/osx/LauncherManager.m
+++ b/pkg/osx/LauncherManager.m
@@ -362,7 +362,7 @@
     // selected game.
 
     game_name = [self->iwadController getGameName];
-    sprintf(filename, "CMDLINE.%s", game_name);
+    sprintf(filename, "CMDLINE-%s", game_name);
 
     OpenDocumentation(filename);
 }