]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - build/prepare_infrastructure
hokuyo: Fix bug in hokuyo transformation
[eurobot/public.git] / build / prepare_infrastructure
1 #!/bin/bash
2
3 set -e
4
5
6 cd `dirname $0`
7 export MYDIR=$PWD
8
9 ########################################
10 # Update submodules
11 ########################################
12 cd `git rev-parse --show-cdup`
13
14 update_submodule() {
15     path=$1
16     git submodule init "$path"
17     if ! git submodule update -- "$path"; then
18         git config --remove-section "submodule.$path"
19         git checkout "$path"
20     else
21         ( cd $path && git submodule init && git submodule update ) || exit 1
22     fi
23 }
24
25 update_submodule src/sysless
26 update_submodule src/orte
27 update_submodule src/ulan-app
28 update_submodule src/ulut
29 update_submodule robot-root
30 update_submodule src/v4l/v4l-utils
31 update_submodule src/pxmc
32 #update_submodule src/linux-shark
33
34
35 ########################################
36 # Default config
37 ########################################
38 cd $MYDIR
39 for i in h8eurobot/ h8mirosot/ h8canusb/ host/ ppc/ lpceurobot/; do
40         echo "make default-config"
41         make -C $i default-config | grep -v default-config-pass
42 done
43