summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2012-03-18 12:28:22 -0400
committerMichael DeHaan <michael.dehaan@gmail.com>2012-03-18 12:28:22 -0400
commit82bd75c1e082f8f047ab0fe5d7f3a2e6b6369b6b (patch)
treedfe91f662ec30feb2be375bdc7320d864fe5473f /hacking
parentf1c8fc63cb66b0f82470f4e01a6738a0fc655367 (diff)
downloadansible-82bd75c1e082f8f047ab0fe5d7f3a2e6b6369b6b.tar.gz
Update env-setup script to make it work better
Diffstat (limited to 'hacking')
-rwxr-xr-xhacking/env-setup25
1 files changed, 12 insertions, 13 deletions
diff --git a/hacking/env-setup b/hacking/env-setup
index 812f269e1c..2802730b31 100755
--- a/hacking/env-setup
+++ b/hacking/env-setup
@@ -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."