summaryrefslogtreecommitdiff
path: root/scripts/build.sh
blob: 23d0ea12bf627d5551c5d4272a4a94f21a49c0ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -e

taskdir=${TOOLCHAIN_BUILD}/etc/tasks

if [[ ! -d ${taskdir} ]]; then
    echo "No tasks. ${taskdir} does not exist."
    exit 1
fi

for task in ${taskdir}/*
do
    # Check for execution permission
    if [[ ! -x ${task} ]]; then
        echo "Skipping: ${task}"
        continue
    fi
    echo "Executing: ${task}"
    ${task}
done