Update env-setup script to make it work better

pull/70/head
Michael DeHaan 13 years ago
parent f1c8fc63cb
commit 82bd75c1e0

@ -1,18 +1,17 @@
# -*- mode: shell-script -*-
PREFIX_PYTHONPATH="`pwd`/lib"
PREFIX_PATH="`pwd`/bin"
PREFIX_MANPATH="`pwd`/docs/man"
PREFIX_ANS_LIBRARY="`pwd`/library"
#!/bin/bash
# usage: source ./hacking/env-setup
# modifies environment for running Ansible from checkout
echo "Prefixing PYTHONPATH with $PREFIX_PYTHONPATH"
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
PREFIX_PYTHONPATH="$PWD/lib"
PREFIX_PATH="$PWD/bin"
echo "Prefixing PATH with $PREFIX_PATH"
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
export PATH=$PREFIX_PATH:$PATH
echo $PATH
export ANSIBLE_LIBRARY="$PWD/library"
echo "Prefixing MANPATH with $PREFIX_MANPATH"
export MANPATH=$PREFIX_MANPATH:$MANPATH
echo "PATH=$PATH"
echo "PYTHONPATH=$PYTHONPATH"
echo "ANSIBLE_LIBRARY=$ANSIBLE_LIBRARY"
echo "Setting ANSIBLE_LIBRARY to ${PREFIX_ANS_LIBRARY}"
export ANSIBLE_LIBRARY=${PREFIX_ANS_LIBRARY}
echo "reminder: specify your host file with -i"
echo "done."

Loading…
Cancel
Save