Files
stream-applications/build-core.sh
Corneil du Plessis 19fd1c65cc Update build-core.sh
2024-11-20 12:14:07 +02:00

24 lines
498 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
set -e
$SCDIR/build-folder.sh stream-applications-build,applications/stream-applications-core "$MAVEN_GOAL"