Commit 82bd75c1 by Michael DeHaan

Update env-setup script to make it work better

parent f1c8fc63
# -*- 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."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment