diff options
author | Darrell Anderson <[email protected]> | 2012-04-11 12:29:24 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-04-11 12:29:24 -0500 |
commit | a664aa0ef020fabead47a3a73e30c77562472b0d (patch) | |
tree | b12a59509a1553d2c6f48eb5fc04cea7efb056f0 | |
parent | af5fa7be832c720d7c0fb66706646dc9cc567fb5 (diff) | |
download | tdebase-a664aa0ef020fabead47a3a73e30c77562472b0d.tar.gz tdebase-a664aa0ef020fabead47a3a73e30c77562472b0d.zip |
Revise MANPATH support method.
Thanks to Slavek Banko!
-rw-r--r-- | starttde | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |