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
dde32a82
Commit
dde32a82
authored
Jan 15, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set default values for shell variables that we use
Fixes #9991
parent
1b8faa68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
6 deletions
+34
-6
hacking/env-setup
+17
-3
v2/hacking/env-setup
+17
-3
No files found.
hacking/env-setup
View file @
dde32a82
# 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-""}
# When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE
if [ -n "$BASH_SOURCE" ] ; then
HACKING_DIR=$(dirname "$BASH_SOURCE")
...
...
@@ -40,15 +46,23 @@ gen_egg_info()
# directory in history
if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
pushd "$ANSIBLE_HOME"
gen_egg_info
if [ "$VERBOSITY" = "-q" ] ; then
gen_egg_info 2>1 1> /dev/null
else
gen_egg_info
fi
popd
else
gen_egg_info
if [ "$VERBOSITY" = "-q" ] ; then
gen_egg_info 2>1 1> /dev/null
else
gen_egg_info
fi
fi
# Print out values unless -q is set
if [
$# -eq 0 -o "$1
" != "-q" ] ; then
if [
"$VERBOSITY
" != "-q" ] ; then
echo ""
echo "Setting up Ansible to run out of checkout..."
echo ""
...
...
v2/hacking/env-setup
View file @
dde32a82
# 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-""}
# When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE
if [ -n "$BASH_SOURCE" ] ; then
HACKING_DIR=$(dirname "$BASH_SOURCE")
...
...
@@ -40,15 +46,23 @@ gen_egg_info()
# directory in history
#if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
# pushd "$ANSIBLE_HOME"
# gen_egg_info
# if [ "$VERBOSITY" = "-q" ] ; then
# gen_egg_info 2>1 1> /dev/null
# else
# gen_egg_info
# fi
# popd
#else
# gen_egg_info
# if [ "$VERBOSITY" = "-q" ] ; then
# gen_egg_info 2>1 1> /dev/null
# else
# gen_egg_info
# fi
#fi
# Print out values unless -q is set
if [
$# -eq 0 -o "$1
" != "-q" ] ; then
if [
"$VERBOSITY
" != "-q" ] ; then
echo ""
echo "Setting up Ansible to run out of checkout..."
echo ""
...
...
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