Merge pull request #76 from tbielawa/hacking
Add environment updating script 'env-setup' to facilitate running ansibl...
This commit is contained in:
commit
95555ecc14
4 changed files with 27 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
*~
|
||||
*.py[co]
|
||||
build
|
||||
# Emacs backup files...
|
||||
*~
|
||||
.\#*
|
||||
|
|
3
docs/man/.gitignore
vendored
3
docs/man/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.xml
|
||||
*.xml
|
||||
*.[0-9]
|
||||
|
|
11
hacking/README
Normal file
11
hacking/README
Normal file
|
@ -0,0 +1,11 @@
|
|||
The 'env-setup' script modifies your environment to allow you to run
|
||||
ansible from a git checkout.
|
||||
|
||||
To use it from the root of a checkout:
|
||||
|
||||
$ . ./hacking/env-setup
|
||||
|
||||
Note the space between the '.' and the './'
|
||||
|
||||
Man pages will not load until you run 'make docs' from the root of the
|
||||
checkout.
|
11
hacking/env-setup
Executable file
11
hacking/env-setup
Executable file
|
@ -0,0 +1,11 @@
|
|||
# -*- mode: shell-script -*-
|
||||
PREFIX_PYTHONPATH="`pwd`/lib/ansible:`pwd`/lib"
|
||||
PREFIX_PATH="`pwd`/bin"
|
||||
PREFIX_MANPATH="`pwd`/docs/man"
|
||||
|
||||
echo "Prefixing PYTHONPATH with $PREFIX_PYTHONPATH"
|
||||
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
|
||||
echo "Prefixing PATH with $PREFIX_PATH"
|
||||
export PATH=$PREFIX_PATH:$PATH
|
||||
echo "Prefixing MANPATH with $PREFIX_MANPATH"
|
||||
export MANPATH=$PREFIX_MANPATH:$MANPATH
|
Loading…
Reference in a new issue