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
365af69c
Commit
365af69c
authored
Jan 18, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More quotes and reimplement without pushd/popd
parent
ed891c76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
35 deletions
+29
-35
hacking/env-setup
+14
-17
v2/hacking/env-setup
+15
-18
No files found.
hacking/env-setup
View file @
365af69c
...
@@ -36,31 +36,28 @@ expr "$MANPATH" : "${PREFIX_MANPATH}.*" > /dev/null || export MANPATH="$PREFIX_M
...
@@ -36,31 +36,28 @@ expr "$MANPATH" : "${PREFIX_MANPATH}.*" > /dev/null || export MANPATH="$PREFIX_M
gen_egg_info()
gen_egg_info()
{
{
python setup.py egg_info
python setup.py egg_info
if [ -e
$PREFIX_PYTHONPATH/ansible*.egg-info
] ; then
if [ -e
"$PREFIX_PYTHONPATH/ansible*.egg-info"
] ; then
rm -r
$PREFIX_PYTHONPATH/ansible*.egg-info
rm -r
"$PREFIX_PYTHONPATH/ansible*.egg-info"
fi
fi
mv
ansible*.egg-info $PREFIX_PYTHONPATH
mv
"ansible*.egg-info" "$PREFIX_PYTHONPATH"
}
}
# In some shells if pushd is a no-op then popd sends you to a previous
# directory in history
if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
pushd "$ANSIBLE_HOME"
current_dir="$PWD"
if [ "$VERBOSITY" = "-q" ] ; then
gen_egg_info 2>1 1> /dev/null
else
gen_egg_info
fi
popd
else
else
if [ "$VERBOSITY" = "-q" ] ; then
current_dir="$ANSIBLE_HOME"
gen_egg_info 2>1 1> /dev/null
fi
else
cd "$ANSIBLE_HOME"
gen_egg_info
if [ "$VERBOSITY" = "-q" ] ; then
fi
gen_egg_info 2>1 1> /dev/null
else
gen_egg_info
fi
fi
cd "$current_dir"
#
# Print out values unless -q is set
# Print out values unless -q is set
#
if [ "$VERBOSITY" != "-q" ] ; then
if [ "$VERBOSITY" != "-q" ] ; then
echo ""
echo ""
...
...
v2/hacking/env-setup
View file @
365af69c
...
@@ -36,31 +36,28 @@ expr "$MANPATH" : "${PREFIX_MANPATH}.*" > /dev/null || export MANPATH="$PREFIX_M
...
@@ -36,31 +36,28 @@ expr "$MANPATH" : "${PREFIX_MANPATH}.*" > /dev/null || export MANPATH="$PREFIX_M
gen_egg_info()
gen_egg_info()
{
{
python setup.py egg_info
python setup.py egg_info
if [ -e
$PREFIX_PYTHONPATH/ansible*.egg-info
] ; then
if [ -e
"$PREFIX_PYTHONPATH/ansible*.egg-info"
] ; then
rm -r
$PREFIX_PYTHONPATH/ansible*.egg-info
rm -r
"$PREFIX_PYTHONPATH/ansible*.egg-info"
fi
fi
mv
ansible*.egg-info $PREFIX_PYTHONPATH
mv
"ansible*.egg-info" "$PREFIX_PYTHONPATH"
}
}
# In some shells if pushd is a no-op then popd sends you to a previous
if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
# directory in history
current_dir="$PWD"
#if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
else
# pushd "$ANSIBLE_HOME"
current_dir="$ANSIBLE_HOME"
# if [ "$VERBOSITY" = "-q" ] ; then
fi
# gen_egg_info 2>1 1> /dev/null
cd "$ANSIBLE_HOME"
# else
#if [ "$VERBOSITY" = "-q" ] ; then
# gen_egg_info
# gen_egg_info 2>1 1> /dev/null
# fi
# popd
#else
#else
# if [ "$VERBOSITY" = "-q" ] ; then
# gen_egg_info
# gen_egg_info 2>1 1> /dev/null
# else
# gen_egg_info
# fi
#fi
#fi
cd "$current_dir"
#
# Print out values unless -q is set
# Print out values unless -q is set
#
if [ "$VERBOSITY" != "-q" ] ; then
if [ "$VERBOSITY" != "-q" ] ; then
echo ""
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