Browse files

/usr/share/mad as well

  • Loading branch information...
1 parent c83950a commit d6ab5d1e3535e0ce11ce514fd57c48ae4490efd0 @tj committed Apr 14, 2012
Showing with 10 additions and 5 deletions.
  1. +2 −2 bin/mad
  2. +8 −3 share/mad/mad.md
View
4 bin/mad
@@ -9,7 +9,7 @@ VERSION="0.0.1"
display() {
IFS=":"
local page=$1
- local paths="$MAD_PATH:."
+ local paths="$MAD_PATH:/usr/local/share/mad:/usr/share/mad:."
for path in $paths; do
local file=$path/$page
@@ -21,7 +21,7 @@ display() {
echo
echo " Failed to locate '$page'"
echo
- echo " MAD_PATH=\"$MAD_PATH\""
+ echo " MAD_PATH=\"$paths\""
echo
exit 1
}
View
11 share/mad/mad.md
@@ -27,11 +27,16 @@
## Page lookup
Use the __MAD_PATH__ environment variable to control
- where `mad(1)` will look for a manual page. The __CWD__
- is always part of the lookup. The ".md" extension may
- be omitted.
+ where `mad(1)` will look for a manual page.
+ The ".md" extension may be omitted.
For example:
MAD_PATH="/usr/share/mad:share/mad"
+ The following paths will always be searched:
+
+ - .
+ - /usr/local/share/mad
+ - /usr/share/mad
+

0 comments on commit d6ab5d1

Please sign in to comment.