Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
02454e5f
Commit
02454e5f
authored
6 years ago
by
TSC21
Committed by
Lorenz Meier
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update OSX install script to fit arg options to reinstall formulas and install install sim tools
parent
3e90c37d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tools/setup/OSX.sh
+33
-4
33 additions, 4 deletions
Tools/setup/OSX.sh
with
33 additions
and
4 deletions
Tools/setup/OSX.sh
+
33
−
4
View file @
02454e5f
...
...
@@ -3,12 +3,41 @@
# script directory
DIR
=
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
# Reinstall if --reinstall set
REINSTALL_FORMULAS
=
""
# Install simulation tools?
INSTALL_SIM
=
""
# Parse arguments
for
arg
in
"
$@
"
do
if
[[
$arg
==
"--reinstall"
]]
;
then
REINSTALL_FORMULAS
=
$arg
elif
[[
$arg
==
"--sim-tools"
]]
;
then
INSTALL_SIM
=
$arg
fi
done
# Install px4-dev formula
brew tap PX4/px4
brew
install
px4-dev
if
[
brew
ls
--versions
px4-dev
>
/dev/null
]
;
then
brew
install
px4-dev
elif
[[
$REINSTALL_FORMULAS
==
"--reinstall"
]]
;
then
brew reinstall px4-dev
fi
#
p
ython dependencies
#
P
ython dependencies
sudo
easy_install pip
sudo
-H
pip
install
-r
${
DIR
}
/requirements.txt
sudo
-H
pip
install
--upgrade
--force-reinstall
pip
sudo
-H
pip
install
-I
-r
${
DIR
}
/requirements.txt
# Optional, but recommended additional simulation tools:
brew
install
px4-sim
if
[[
$INSTALL_SIM
==
"--sim-tools"
]]
;
then
if
[
brew
ls
--versions
px4-sim
>
/dev/null
]
;
then
brew
install
px4-sim
elif
[[
$REINSTALL_FORMULAS
==
"--reinstall"
]]
;
then
brew reinstall px4-sim
fi
fi
echo
"All set! PX4 toolchain installed!"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment