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
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"
}
# In some shells if pushd is a no-op then popd sends you to a previous
# directory in history
if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
pushd "$ANSIBLE_HOME"
if [ "$VERBOSITY" = "-q" ] ; then
gen_egg_info 2>1 1> /dev/null
else
gen_egg_info
fi
popd
current_dir="$PWD"
else
if [ "$VERBOSITY" = "-q" ] ; then
gen_egg_info 2>1 1> /dev/null
else
gen_egg_info
fi
current_dir="$ANSIBLE_HOME"
fi
cd "$ANSIBLE_HOME"
if [ "$VERBOSITY" = "-q" ] ; then
gen_egg_info 2>1 1> /dev/null
else
gen_egg_info
fi
cd "$current_dir"
#
# Print out values unless -q is set
#
if [ "$VERBOSITY" != "-q" ] ; then
echo ""
...
...
v2/hacking/env-setup
View file @
365af69c
...
...
@@ -36,31 +36,28 @@ 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"
}
# In some shells if pushd is a no-op then popd sends you to a previous
# directory in history
#if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
# pushd "$ANSIBLE_HOME"
# if [ "$VERBOSITY" = "-q" ] ; then
# gen_egg_info 2>1 1> /dev/null
# else
# gen_egg_info
# fi
# popd
if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
current_dir="$PWD"
else
current_dir="$ANSIBLE_HOME"
fi
cd "$ANSIBLE_HOME"
#if [ "$VERBOSITY" = "-q" ] ; then
# gen_egg_info 2>1 1> /dev/null
#else
# if [ "$VERBOSITY" = "-q" ] ; then
# gen_egg_info 2>1 1> /dev/null
# else
# gen_egg_info
# fi
# gen_egg_info
#fi
cd "$current_dir"
#
# Print out values unless -q is set
#
if [ "$VERBOSITY" != "-q" ] ; then
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