Files
core/Common/3dParty/make.sh
Pavel Lobashov bb8add215a Fail on any error in subscripts
Without this command any errors are just ignored and script continues
2018-07-12 16:24:32 +03:00

25 lines
280 B
Bash
Executable File

#!/bin/bash
set -e
SCRIPT=$(readlink -f "$0" || grealpath "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
cd "$SCRIPTPATH"
for d in */ ; do
echo "$d"
cd "$SCRIPTPATH/$d"
if [ -f "fetch.sh" ]
then
bash "fetch.sh"
fi
if [ -f "build.sh" ]
then
bash "build.sh"
fi
cd "$SCRIPTPATH"
done