-
Notifications
You must be signed in to change notification settings - Fork 5
/
pack-debs
executable file
·71 lines (64 loc) · 2.13 KB
/
pack-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env bash
set -e
# TODO remove set -x
set -x
DIR=$( dirname "${BASH_SOURCE[0]}" )
cd $DIR
DIR=`pwd`
BUILD_ROS_DISTRO="${BUILD_ROS_DISTRO:-noetic}"
BUILD_OS="${BUILD_OS:-ubuntu}"
BUILD_OS_VERSION="${BUILD_OS_VERSION:-focal}"
BUILD="$DIR/lg_builder/scripts/lg-ros-build --ros_distro=${BUILD_ROS_DISTRO} --os=${BUILD_OS} --os_version=${BUILD_OS_VERSION}"
SRCDIR=$DIR/catkin/src
DEBDIR=$DIR/catkin/debs
rm -rf $DEBDIR
mkdir -p $DEBDIR
cd $DEBDIR
sudo rosdep init || /bin/true
sudo rosdep update --include-eol-distros
sudo rosdep install -y --from-paths $SRCDIR --ignore-src \
--rosdistro="${BUILD_ROS_DISTRO}" --os="${BUILD_OS}:${BUILD_OS_VERSION}"
if [ -e $SRCDIR/appctl_msg_defs ]; then
$BUILD $SRCDIR/appctl_msg_defs
sudo dpkg --force-overwrite -i ros-${BUILD_ROS_DISTRO}-appctl-msg-defs_*${BUILD_OS_VERSION}_*.deb
fi
if [ -e $SRCDIR/appctl ]; then
$BUILD $SRCDIR/appctl
sudo dpkg --force-overwrite -i ros-${BUILD_ROS_DISTRO}-appctl_*${BUILD_OS_VERSION}_*.deb
fi
$BUILD $SRCDIR/interactivespaces_msgs
sudo dpkg --force-overwrite -i ros-${BUILD_ROS_DISTRO}-interactivespaces-msgs_*${BUILD_OS_VERSION}_*.deb
$BUILD $SRCDIR/lg_msg_defs
sudo dpkg --force-overwrite -i ros-${BUILD_ROS_DISTRO}-lg-msg-defs_*${BUILD_OS_VERSION}_*.deb
$BUILD $SRCDIR/lg_common
sudo dpkg -i ros-${BUILD_ROS_DISTRO}-lg-common_*${BUILD_OS_VERSION}_*.deb
$BUILD $SRCDIR/lg_activity
$BUILD $SRCDIR/lg_attract_loop
$BUILD $SRCDIR/lg_builder
$BUILD $SRCDIR/lg_earth
$BUILD $SRCDIR/lg_json_config
$BUILD $SRCDIR/lg_keyboard
$BUILD $SRCDIR/lg_media
$BUILD $SRCDIR/lg_mirror
$BUILD $SRCDIR/lg_nav_to_device
$BUILD $SRCDIR/lg_lock
$BUILD $SRCDIR/lg_navlib
$BUILD $SRCDIR/lg_offliner
$BUILD $SRCDIR/lg_panovideo
$BUILD $SRCDIR/lg_proximity
$BUILD $SRCDIR/lg_replay
$BUILD $SRCDIR/lg_rfreceiver
$BUILD $SRCDIR/lg_spacenav_globe
$BUILD $SRCDIR/lg_stats
$BUILD $SRCDIR/lg_sv
$BUILD $SRCDIR/lg_twister
$BUILD $SRCDIR/lg_pointer
$BUILD $SRCDIR/lg_wireless_devices
$BUILD $SRCDIR/lg_screenshot
$BUILD $SRCDIR/spacenav_wrapper
$BUILD $SRCDIR/state_proxy
$BUILD $SRCDIR/rfid_scanner
$BUILD $SRCDIR/rfreceiver
$BUILD $SRCDIR/wiimote
$BUILD $SRCDIR/lg_volume_control
$BUILD $SRCDIR/liquidgalaxy