Le 5 nov. 05 à 09:30, Michael Bonfils a écrit :
L'install se passe bien mais il me reste un problème... plus
philosophique qu'autre chose: le fait de rajouter le path (/usr/sfw/
bin) suffit ?
Pour être complet, je mets dans mon .bashrc & .profile :
apendpath()
{
if [ "X$1" = "X-a" ]; then
APPENDALL=yes
shift
fi
while [ -n "$1" ] ; do
if [ -d $1 ] ; then
[ -d $1/bin ] && PATH=${PATH:+$PATH:}$1/bin
[ -d $1/sbin ] && PATH=${PATH:+$PATH:}$1/sbin
[ -d $1/man ] && MANPATH=${MANPATH:+$MANPATH:}$1/man
[ -d $1/lib ] && LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+
$LD_LIBRARY_PATH:}$1/lib
[ -d $1/info ] && INFODIR=${INFODIR:+$INFODIR:}$1/info
[ "$APPENDALL" = "yes" ] || { echo $1 ; break ;}
fi
shift
done
unset APPENDALL
}
suivit plus loin de :
apendpath -a /usr/local /usr/sfw /opt/sfw
--
Never forget to KISS
Keep It Simple Stupid.
_______________________________________________
Solaris_fr liste de diffusion en français pour Solaris, sur toutes architectures
[email protected]
http://x86.sun.com/mailman/listinfo/solaris_fr