ref: d4e56754210c2b449c3d7a8dc3eb9886d89ff593
parent: 35e27b41d787adca0b4f5c2ec394effb5475301b
author: Simon Howard <[email protected]>
date: Thu Mar 10 14:47:14 EST 2011
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
--- a/pkg/osx/Execute.m
+++ b/pkg/osx/Execute.m
@@ -175,6 +175,8 @@
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);
--- a/pkg/osx/GNUmakefile
+++ b/pkg/osx/GNUmakefile
@@ -73,6 +73,10 @@
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)