blob: cab133df43780bd520f0659cd28c94ff70c873ae [file] [log] [blame]
Anthony Youngccd4ea32011-11-08 17:25:12 -06001#!/bin/bash
2
3EXECUTOR_NUMBER=$1
4CONFIGURATION=$2
Anthony Young792b1162011-11-09 22:40:49 -08005ADAPTER=$3
Anthony Youngccd4ea32011-11-08 17:25:12 -06006
7function usage() {
8 echo "Usage: $0 - Build a configuration"
9 echo ""
Anthony Young792b1162011-11-09 22:40:49 -080010 echo "$0 [EXECUTOR_NUMBER] [CONFIGURATION] [ADAPTER]"
Anthony Youngccd4ea32011-11-08 17:25:12 -060011 exit 1
12}
13
14# Validate inputs
15if [[ "$EXECUTOR_NUMBER" = "" || "$CONFIGURATION" = "" ]]; then
16 usage
17fi
18
19# Execute configuration script
Anthony Young792b1162011-11-09 22:40:49 -080020cd configurations && ./$CONFIGURATION.sh $EXECUTOR_NUMBER $CONFIGURATION $ADAPTER