#!/bin/bash set -e cd `dirname $0` export MYDIR=$PWD ######################################## # Update submodules ######################################## cd `git rev-parse --show-cdup` # Register only submodules that can be checked out git config -f .gitmodules --get-regexp '^submodule\..*\.path$'|awk '{ print $2 }' | while read $path; do if ! git submodule update --init -- "$path"; then git config --remove-section "submodule.$path" git checkout "$path" fi done # Update submodules of submodules (recursively) git submodule foreach $MYDIR/update_submodules ######################################## # Default config ######################################## cd $MYDIR for i in h8eurobot/ h8mirosot/ h8canusb/ linux/ ppc/ lpceurobot/; do make -C $i default-config done