]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - build/prepare_infrastructure
Reverted accidentally deleted changes in prepare_infrastructure
[eurobot/public.git] / build / prepare_infrastructure
1 #!/bin/bash
2
3 set -e
4
5 function darcs_import()
6 {
7     [ -x "`which darcs`" ] || return
8     REPODIR=$1
9     ORIGIN=$2
10     if [ ! -d ${REPODIR}/_darcs ]; then
11         darcs get ${ORIGIN} --repo-name=${REPODIR}
12     else
13         (cd ${REPODIR}; darcs pull --all ${ORIGIN})
14     fi
15 }
16
17 cd `dirname $0`
18
19 #if [ ! -d _infrastructure/sysless-lpc21xx ]; then
20 #    git clone git://rtime.felk.cvut.cz/sysless-lpc21xx _infrastructure/sysless-lpc21xx
21 #    (cd _infrastructure/sysless-lpc21xx; git submodule init; git submodule update; common/linkarch)
22 #else
23 #    (cd _infrastructure/sysless-lpc21xx; git pull; git submodule update)
24 #fi
25
26 if [ ! -d _infrastructure/h8300-boot ]; then
27     git clone git://rtime.felk.cvut.cz/sysless-h8300 _infrastructure/h8300-boot
28     (cd _infrastructure/h8300-boot; git submodule init; git submodule update; common/linkarch)
29 else
30     (cd _infrastructure/h8300-boot; git pull; git submodule update)
31 fi
32
33 darcs_import ../src/pxmc rtime.felk.cvut.cz:/var/repos/pxmc
34
35 for i in h8eurobot/ h8mirosot/ h8canusb/ linux/ ppc/; do
36         make -C $i default-config
37 done
38
39 # for i in *; do
40 #     [ -d $i -a $i != h8300-boot ] && ln -sf ../../$i h8300-boot/app
41 # done
42
43 # echo "You can find all your applications in h8300-boot/app"