[Blends-commit] [SCM] blends-dev branch, master, updated. 66099e16eefffc9507c1d9a757f098d8d169c9fd
Andreas Tille
tille at debian.org
Sat Jan 31 10:43:05 UTC 2015
The following commit has been merged in the master branch:
commit 66099e16eefffc9507c1d9a757f098d8d169c9fd
Author: Andreas Tille <tille at debian.org>
Date: Sat Jan 31 10:51:46 2015 +0100
Enable also setting MANPATH
diff --git a/templates/profile.sh b/templates/profile.sh
index c3d881a..12951f7 100644
--- a/templates/profile.sh
+++ b/templates/profile.sh
@@ -11,9 +11,17 @@ if [ -e "$HOME"/.blends ] ; then
for blend in `sed 's/#.*//' "$HOME"/.blends` ; do
if [ "$blend" = "$BLEND" ] ; then
blendpath="/usr/lib/$BLEND/bin"
+ blendmanpath="/usr/lib/$BLEND/share/man"
if [ -d "$blendpath" ] ; then
export PATH="$blendpath:${PATH}"
fi
+ if [ -d "$blendmanpath" ] ; then
+ if [ "$MANPATH" = "" ] ; then
+ export MANPATH="$blendmanpath:/usr/share/man"
+ else
+ export MANPATH="$blendmanpath:${MANPATH}"
+ fi
+ fi
break
fi
done
--
Git repository for blends code
More information about the Blends-commit
mailing list