Added support in MacPorts base to set PATH and MANPATH automatically in Leopard

Bjarne D Mathiesen macintosh at mathiesen.info
Fri Nov 30 09:00:29 PST 2007


How about this:

mkdir -p /etc/paths.d
mv -n /etc/paths /etc/paths.d/999macosx
touch /etc/paths
echo "${prefix}/bin" > /etc/paths.d/000macports
echo "${prefix}/sbin" >> /etc/paths.d/000macports
echo "/Developer/Tools" > /etc/paths.d/888developer

mkdir -p /etc/manpaths.d
mv -n /etc/manpaths /etc/manpaths.d/999macosx
touch /etc/manpaths
echo "${prefix}/share/man" > /etc/manpaths.d/000macports

If the paths are loaded in alphabetical order, this ought to ensure that
the macports paths are before the standard Mac OS X ones.

You _do_ want the macport path to be before the standard paths as I
guess you want to execute the alternative utilities provided by macports
instaed of those from Mac OS X ;-)

-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$/Intel-frit miljø


More information about the macports-dev mailing list