-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpack-debs
More file actions
executable file
·47 lines (36 loc) · 811 Bytes
/
pack-debs
File metadata and controls
executable file
·47 lines (36 loc) · 811 Bytes
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
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
set -e
DIR=$( dirname "${BASH_SOURCE[0]}" )
cd $DIR
DIR=`pwd`
BUILD='lg-ros-build'
SRCDIR=$DIR/catkin/src
DEBDIR=$DIR/catkin/debs
ROSDISTRO=melodic
./init_workspace.sh
rm -rf $DEBDIR
mkdir -p $DEBDIR
cd $DEBDIR
sudo rosdep init || /bin/true
rosdep update
sudo rosdep install -r -y --from-paths $SRCDIR --ignore-src \
--rosdistro=$ROSDISTRO --os=ubuntu:bionic
function build() {
package=$1
$BUILD $SRCDIR/$package
}
function force_install() {
package=$1
sudo dpkg --force-overwrite -i ros-$ROSDISTRO-${package}_*.deb
}
function regular_install() {
package=$1
sudo dpkg -i ros-$ROSDISTRO-${package}_*.deb
}
function build_and_install() {
package=$1
build ${package}
regular_install ${package/_/-}
}
# first build and install dependencies
build command_handler