forked from oscar-lima/isr_planning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepository.debs
executable file
·39 lines (34 loc) · 937 Bytes
/
repository.debs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
if [ $# == 0 ]; then
INSTALL_PACKAGES=true
else
INSTALL_PACKAGES=$1
fi
# your ROS distribution
DISTRO=kinetic
# create list of packages to install
packagelist=(
bison
flex
gawk
g++-multilib
unzip
pypy
ros-${DISTRO}-catkin-lint
ros-${DISTRO}-mongodb-store
)
### install debian packages listed in array above
if [ $INSTALL_PACKAGES != false ]; then
sudo apt-get install -y ${packagelist[@]}
fi
### install further repositories if repository.rosinstall file exists
if [ -f repository.rosinstall ]; then
rosinstall .. /opt/ros/${DISTRO} repository.rosinstall
### install dependencies of the previously cloned repositories
dependent_repositories=$(grep -r "local-name:" repository.rosinstall | cut -d":" -f 2 | sed -r 's/\s+//g')
for i in $dependent_repositories
do
cd ../$i
if [ -f repository.debs ]; then ./repository.debs $INSTALL_PACKAGES ; fi
done
fi