about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ch/chawan/mancha-augment-path.diff
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/ch/chawan/mancha-augment-path.diff')
-rw-r--r--nixpkgs/pkgs/by-name/ch/chawan/mancha-augment-path.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ch/chawan/mancha-augment-path.diff b/nixpkgs/pkgs/by-name/ch/chawan/mancha-augment-path.diff
new file mode 100644
index 000000000000..cbe4f6aed80e
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/ch/chawan/mancha-augment-path.diff
@@ -0,0 +1,15 @@
+Add the -m option to man's command line to augment the list of paths
+searched by man. The string "OUT" must be substituted with chawan's $out
+path after patching.
+The required -m option is only available in the mandoc implementation.
+--- a/adapter/protocol/man
++++ b/adapter/protocol/man
+@@ -75,7 +75,7 @@ EOF
+ 
+   $section =~ s:([^-\w\200-\377.,])::g;
+   $man =~ s:([^-\w\200-\377.,])::g;
+-  open(F, "GROFF_NO_SGR=1 MAN_KEEP_FORMATTING=1 $MAN $section $man 2> /dev/null |");
++  open(F, "GROFF_NO_SGR=1 MAN_KEEP_FORMATTING=1 $MAN -m OUT/share/man $section $man 2> /dev/null |");
+ }
+ 
+ $ok = 0;