-
Notifications
You must be signed in to change notification settings - Fork 4
/
bootstrap.sh
executable file
·48 lines (42 loc) · 1.78 KB
/
bootstrap.sh
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
#! /bin/sh
if [ -n "$ROS_ROOT" ]; then
echo "Error: ROS_ROOT detected. You should follow the installation instructions of the "
echo " http://www.ros.org/wiki/orocos_toolchain_ros "
echo " website or unset ROS_ROOT in order not to bootstrap for ROS. Note that there are"
echo " also Debian packages for the Orocos Toolchain in the ros package repositories."
exit 1
fi
if ! test -f $PWD/autoproj_bootstrap; then
if which wget > /dev/null; then
DOWNLOADER=wget
elif which curl > /dev/null; then
DOWNLOADER=curl
else
echo "I can find neither curl nor wget, either install one of these or"
echo "download the following script yourself, and re-run this script"
exit 1
fi
$DOWNLOADER http://rock-robotics.org/stable/autoproj_bootstrap
fi
tellfailupdate () {
echo "autoproj failed to update your configuration. This means most of the time that there"
echo "was an temporary network problem. You can try to manually complete the bootstrap by"
echo "typing these three commands::"
echo " . env.sh"
echo " autoproj update"
echo " autoproj fast-build"
exit 1
}
tellfailbuild () {
echo "autoproj failed to build your configuration. This means most of the time that there"
echo "is a problem with the sources. You can try to manually complete the bootstrap by"
echo "typing these two commands:"
echo " . env.sh"
echo " autoproj build"
echo "If that does not work, send an email to the Orocos user's mailing list: [email protected]"
exit 1
}
ruby autoproj_bootstrap $@ git https://github.com/orocos-toolchain/build.git branch=master [email protected]:orocos-toolchain/build.git
. $PWD/env.sh
autoproj update || tellfailupdate
autoproj fast-build || tellfailbuild