36 lines
847 B
Bash
Executable File
36 lines
847 B
Bash
Executable File
#!/bin/bash
|
|
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
|
|
SCDIR=$(realpath "$SCDIR")
|
|
(return 0 2>/dev/null) && sourced=1 || sourced=0
|
|
function check_env() {
|
|
eval ev='$'$1
|
|
if [ "$ev" == "" ]; then
|
|
echo "$1 not defined"
|
|
if (( sourced != 0 )); then
|
|
return 1
|
|
else
|
|
exit 1
|
|
fi
|
|
fi
|
|
}
|
|
|
|
if [ "$1" = "" ]; then
|
|
MAVEN_GOAL="install"
|
|
else
|
|
MAVEN_GOAL="$*"
|
|
fi
|
|
|
|
$SCDIR/create-matrices.sh
|
|
PROCESSORS=$(jq -c '.processors | .[]' matrix.json | sed 's/\"//g')
|
|
SINKS=$(jq -c '.sinks | .[]' matrix.json | sed 's/\"//g')
|
|
SOURCES=$(jq -c '.sources | .[]' matrix.json | sed 's/\"//g')
|
|
for app in $PROCESSORS; do
|
|
$SCDIR/build-app.sh . "applications/processor/$app"
|
|
done
|
|
for app in $SOURCES; do
|
|
$SCDIR/build-app.sh . "applications/source/$app"
|
|
done
|
|
for app in $SINKS; do
|
|
$SCDIR/build-app.sh . "applications/sink/$app"
|
|
done
|