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 -*- #!/bin/bash
PREFIX_PYTHONPATH="`pwd`/lib" # usage: source ./hacking/env-setup
PREFIX_PATH="`pwd`/bin" # modifies environment for running Ansible from checkout
PREFIX_MANPATH="`pwd`/docs/man"
PREFIX_ANS_LIBRARY="`pwd`/library"
echo "Prefixing PYTHONPATH with $PREFIX_PYTHONPATH" PREFIX_PYTHONPATH="$PWD/lib"
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH PREFIX_PATH="$PWD/bin"
echo "Prefixing PATH with $PREFIX_PATH" export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
export PATH=$PREFIX_PATH:$PATH export PATH=$PREFIX_PATH:$PATH
echo $PATH export ANSIBLE_LIBRARY="$PWD/library"
echo "Prefixing MANPATH with $PREFIX_MANPATH" echo "PATH=$PATH"
export MANPATH=$PREFIX_MANPATH:$MANPATH echo "PYTHONPATH=$PYTHONPATH"
echo "ANSIBLE_LIBRARY=$ANSIBLE_LIBRARY"
echo "Setting ANSIBLE_LIBRARY to ${PREFIX_ANS_LIBRARY}" echo "reminder: specify your host file with -i"
export ANSIBLE_LIBRARY=${PREFIX_ANS_LIBRARY} echo "done."

Loading…
Cancel
Save