summaryrefslogtreecommitdiffstats
path: root/starttde
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-04-11 12:29:24 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-04-11 12:29:24 -0500
commita664aa0ef020fabead47a3a73e30c77562472b0d (patch)
treeb12a59509a1553d2c6f48eb5fc04cea7efb056f0 /starttde
parentaf5fa7be832c720d7c0fb66706646dc9cc567fb5 (diff)
downloadtdebase-a664aa0ef020fabead47a3a73e30c77562472b0d.tar.gz
tdebase-a664aa0ef020fabead47a3a73e30c77562472b0d.zip
Revise MANPATH support method.
Thanks to Slavek Banko!
Diffstat (limited to 'starttde')
-rw-r--r--starttde6
1 files changed, 4 insertions, 2 deletions
diff --git a/starttde b/starttde
index fb03afb9..f96494e6 100644
--- a/starttde
+++ b/starttde
@@ -170,8 +170,10 @@ if [ -d $TDEDIR/bin ]; then
fi
fi
if [ -d $TDEDIR/share/man ]; then
- if [ "$MANPATH" = "" ]; then
- export MANPATH=$TDEDIR/share/man
+ if [ -x /usr/bin/manpath ]; then
+ if [ "`manpath -q | grep \"$TDEDIR/share/man\"`" = "" ]; then
+ export MANPATH=$TDEDIR/share/man:$MANPATH
+ fi
else
if [ "`echo $MANPATH | grep \"$TDEDIR/share/man\"`" = "" ]; then
export MANPATH=$TDEDIR/share/man:$MANPATH