dots/commonsh/01_ports
David Alexander Majnemer b3c9a9c6e9 - fixed a bug here and there
- made it fully sh compliant (works even with solaris sh)
2009-01-03 14:15:00 -06:00

28 lines
466 B
Bash
Executable file

#! /bin/sh
if [ -d /opt/local/man ] ; then
if [ -z "${MANPATH}" ] ; then
MANPATH="/opt/local/man":`manpath`
else
MANPATH="/opt/local/man:${MANPATH}"
fi
export MANPATH
fi
if [ -d /opt/local/bin ] ; then
if [ -z "${PATH}" ] ; then
PATH="/opt/local/bin"
else
PATH="/opt/local/bin:${PATH}"
fi
fi
if [ -d /opt/local/sbin ] ; then
PATH="/opt/local/sbin:${PATH}"
fi
if [ -d /opt/local/libexec ] ; then
PATH="/opt/local/libexec:${PATH}"
fi
export PATH