2012-03-18 17:28:22 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# usage: source ./hacking/env-setup
|
|
|
|
# modifies environment for running Ansible from checkout
|
2012-03-05 19:47:01 +01:00
|
|
|
|
2012-03-18 17:28:22 +01:00
|
|
|
PREFIX_PYTHONPATH="$PWD/lib"
|
|
|
|
PREFIX_PATH="$PWD/bin"
|
2012-04-17 16:53:32 +02:00
|
|
|
PREFIX_MANPATH="$PWD/docs/man"
|
2012-03-05 22:06:02 +01:00
|
|
|
|
2012-03-18 17:28:22 +01:00
|
|
|
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
|
2012-03-05 19:47:01 +01:00
|
|
|
export PATH=$PREFIX_PATH:$PATH
|
2012-03-18 17:28:22 +01:00
|
|
|
export ANSIBLE_LIBRARY="$PWD/library"
|
2012-04-17 16:53:32 +02:00
|
|
|
export MANPATH=$PREFIX_MANPATH:$MANPATH
|
2012-03-05 22:06:02 +01:00
|
|
|
|
2012-03-18 17:28:22 +01:00
|
|
|
echo "PATH=$PATH"
|
|
|
|
echo "PYTHONPATH=$PYTHONPATH"
|
|
|
|
echo "ANSIBLE_LIBRARY=$ANSIBLE_LIBRARY"
|
2012-04-17 16:53:32 +02:00
|
|
|
echo "MANPATH=$MANPATH"
|
2012-03-05 22:06:02 +01:00
|
|
|
|
2012-04-17 16:53:32 +02:00
|
|
|
echo "Reminder: specify your host file with -i"
|
|
|
|
echo "Done."
|