Browse files

main docs dir relative to 'mad' binary

  • Loading branch information...
1 parent 689f247 commit 0e37ead8d18dcd5c2e065b955fe5734c08739bdd @tnovelli tnovelli committed Apr 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/mad
View
4 bin/mad
@@ -13,7 +13,7 @@ MAD_CONFIG=${MAD_CONFIG:-$CONFIG}
display() {
IFS=":"
local page=$1
- local paths=".:$MAD_PATH:/usr/local/share/mad:/usr/share/mad"
+ local paths=".:$MAD_PATH:$(dirname $0)/../share/mad:/usr/share/mad"
for path in $paths; do
local file=$path/$page
@@ -76,7 +76,7 @@ display_mad_usage() {
#
install_all_remote() {
- local path=${MAD_PATH:-/usr/local/share/mad}
+ local path=$(dirname $0)/../share/mad
echo
echo " ... cloning repo"
cd /tmp && rm -fr mad-pages

0 comments on commit 0e37ead

Please sign in to comment.