Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
418e24cc
Commit
418e24cc
authored
Jan 27, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge changes from v1 env-setup into v2/env-setup
parent
35b4e6a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
v2/hacking/env-setup
+23
-23
No files found.
v2/hacking/env-setup
View file @
418e24cc
# usage: source
./
hacking/env-setup [-q]
# usage: source hacking/env-setup [-q]
# modifies environment for running Ansible from checkout
# Default values for shell variables we use
PYTHONPATH=${PYTHONPATH-""}
PATH=${PATH-""}
MANPATH=${MANPATH-""}
VERBOSITY=${1-""}
verbosity=${1-info} # Defaults to `info' if unspecified
if [ "$verbosity" = -q ]; then
verbosity=silent
fi
# When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE
if [ -n "$BASH_SOURCE" ] ; then
...
...
@@ -36,10 +40,10 @@ expr "$MANPATH" : "${PREFIX_MANPATH}.*" > /dev/null || export MANPATH="$PREFIX_M
gen_egg_info()
{
python setup.py egg_info
if [ -e "$PREFIX_PYTHONPATH/ansible
*
.egg-info" ] ; then
rm -r "$PREFIX_PYTHONPATH/ansible
*
.egg-info"
if [ -e "$PREFIX_PYTHONPATH/ansible.egg-info" ] ; then
rm -r "$PREFIX_PYTHONPATH/ansible.egg-info"
fi
mv "ansible
*
.egg-info" "$PREFIX_PYTHONPATH"
mv "ansible.egg-info" "$PREFIX_PYTHONPATH"
}
if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
...
...
@@ -48,29 +52,25 @@ else
current_dir="$ANSIBLE_HOME"
fi
cd "$ANSIBLE_HOME"
#if [ "$
VERBOSITY" = "-q"
] ; then
# gen_egg_info
2>1 1> /dev/null
#if [ "$
verbosity" = silent
] ; then
# gen_egg_info
> /dev/null 2>&1
#else
# gen_egg_info
#fi
cd "$current_dir"
#
# Print out values unless -q is set
#
if [ "$verbosity" != silent ] ; then
cat <<- EOF
if [ "$VERBOSITY" != "-q" ] ; then
echo ""
echo "Setting up Ansible to run out of checkout..."
echo ""
echo "PATH=$PATH"
echo "PYTHONPATH=$PYTHONPATH"
echo "MANPATH=$MANPATH"
echo ""
Setting up Ansible to run out of checkout...
echo "Remember, you may wish to specify your host file with -i"
echo ""
echo "Done!"
echo ""
f
i
PATH=$PATH
PYTHONPATH=$PYTHONPATH
MANPATH=$MANPATH
Remember, you may wish to specify your host file with -
i
Done!
EOF
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment