#!/bin/sh
# $Id: no-local,v 1.4 2012/01/30 23:18:18 tom Exp $
# Run without /usr/local in environment.

# build-all-XXX scripts use "partition", which is assigned to $ME
test -z "$ME" && ME=`/usr/local/bin/partition 2>/dev/null`
test -n "$ME" && export ME

TERMINFO_DIRS=`newpath -n TERMINFO_DIRS -r /usr/local/ncurses/lib/terminfo`
LD_LIBRARY_PATH=`newpath -n LD_LIBRARY_PATH -r /usr/local/bin /usr/local/lib /usr/local/lib/vile`
PATH=`newpath -r /usr/local/bin /usr/local/sbin /usr/local/lib/vile`

export TERMINFO_DIRS
export LD_LIBRARY_PATH
export PATH

exec "$@"
