1#!/bin/bash
2
3#
4# Copyright 2018, Data61
5# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
6# ABN 41 687 119 230.
7#
8# This software may be distributed and modified according to the terms of
9# the BSD 2-Clause license. Note that NO WARRANTY is provided.
10# See "LICENSE_BSD2.txt" for details.
11#
12# @TAG(DATA61_BSD)
13#
14
15kernel_sources=$(find ../src ../include ../libsel4 -name '*.[ch]')
16if [[ -z $kernel_sources ]]; then
17    echo "Unable to find kernel source files"
18    exit 1
19fi
20
21astyle --max-instatement-indent=120 --style=otbs --pad-header --indent=spaces=4 --pad-oper ${kernel_sources}
22