summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2011-03-10 19:47:14 +0000
committerSimon Howard2011-03-10 19:47:14 +0000
commitd4e56754210c2b449c3d7a8dc3eb9886d89ff593 (patch)
treed448dfd30bb8db77243954af07426bdd2c08ff21
parent35e27b41d787adca0b4f5c2ec394effb5475301b (diff)
downloadchocolate-doom-d4e56754210c2b449c3d7a8dc3eb9886d89ff593.tar.gz
chocolate-doom-d4e56754210c2b449c3d7a8dc3eb9886d89ff593.tar.bz2
chocolate-doom-d4e56754210c2b449c3d7a8dc3eb9886d89ff593.zip
Include Unix manpages in MacOS package, and set MANPATH to point to them
when opening a terminal window. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2302
-rw-r--r--pkg/osx/Execute.m2
-rw-r--r--pkg/osx/GNUmakefile4
2 files changed, 6 insertions, 0 deletions
diff --git a/pkg/osx/Execute.m b/pkg/osx/Execute.m
index 608443e2..25f5e67d 100644
--- a/pkg/osx/Execute.m
+++ b/pkg/osx/Execute.m
@@ -175,6 +175,8 @@ void OpenTerminalWindow(const char *doomwadpath)
fprintf(stream, "#!/bin/sh\n");
//fprintf(stream, "set -x\n");
fprintf(stream, "PATH=\"%s:$PATH\"\n", executable_path);
+ fprintf(stream, "MANPATH=\"%s/man:$(manpath)\"\n", executable_path);
+ fprintf(stream, "export MANPATH\n");
fprintf(stream, "DOOMWADPATH=\"%s\"\n", doomwadpath);
fprintf(stream, "export DOOMWADPATH\n");
fprintf(stream, "rm -f \"%s\"\n", TEMP_SCRIPT);
diff --git a/pkg/osx/GNUmakefile b/pkg/osx/GNUmakefile
index f6fa24ff..f9bb6417 100644
--- a/pkg/osx/GNUmakefile
+++ b/pkg/osx/GNUmakefile
@@ -73,6 +73,10 @@ $(STAGING_DIR): launcher $(TOPLEVEL_DOCS)
find $(STAGING_DIR) -name .svn -delete -exec rm -rf {} \; || true
+ 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"
+
clean : launcher_clean
rm -f $(DMG)
rm -rf $(STAGING_DIR)