aee18c749b
Check that function calls look like ^function foo {$ in bash8, and fix all existing failures of that check. Add a note to HACKING.rst Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
22 lines
465 B
Bash
Executable File
22 lines
465 B
Bash
Executable File
#!/bin/bash
|
|
|
|
EXECUTOR_NUMBER=$1
|
|
CONFIGURATION=$2
|
|
ADAPTER=$3
|
|
RC=$4
|
|
|
|
function usage {
|
|
echo "Usage: $0 - Build a configuration"
|
|
echo ""
|
|
echo "$0 [EXECUTOR_NUMBER] [CONFIGURATION] [ADAPTER] [RC (optional)]"
|
|
exit 1
|
|
}
|
|
|
|
# Validate inputs
|
|
if [[ "$EXECUTOR_NUMBER" = "" || "$CONFIGURATION" = "" || "$ADAPTER" = "" ]]; then
|
|
usage
|
|
fi
|
|
|
|
# Execute configuration script
|
|
cd configurations && ./$CONFIGURATION.sh $EXECUTOR_NUMBER $CONFIGURATION $ADAPTER "$RC"
|