about summary refs log tree commit diff
path: root/exman.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--exman.in (renamed from exman.sh)8
1 files changed, 1 insertions, 7 deletions
diff --git a/exman.sh b/exman.in
index 9b6777d..7d4a9c8 100644
--- a/exman.sh
+++ b/exman.in
@@ -6,17 +6,11 @@ die() {
 	exit 1
 }
 
-script=$0
-path=${script%/*}
-prefix=${path%/bin}
-exman="${prefix}/share/exman"
-[ -d "${exman}" ] || exman=$prefix
-
 system=${1:-}
 [ -n "${system}" ] || die 'What system do you want?'
 shift
 
-export MANPATH="${exman}/${system}"
+export MANPATH="%%EXMANDIR%%/${system}"
 [ -d "${MANPATH}" ] || die "No manuals for ${system}"
 
 export MANSECT