Anthony Young | ccd4ea3 | 2011-11-08 17:25:12 -0600 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | EXECUTOR_NUMBER=$1 |
| 4 | CONFIGURATION=$2 |
Anthony Young | 792b116 | 2011-11-09 22:40:49 -0800 | [diff] [blame^] | 5 | ADAPTER=$3 |
Anthony Young | ccd4ea3 | 2011-11-08 17:25:12 -0600 | [diff] [blame] | 6 | |
| 7 | function usage() { |
| 8 | echo "Usage: $0 - Build a configuration" |
| 9 | echo "" |
Anthony Young | 792b116 | 2011-11-09 22:40:49 -0800 | [diff] [blame^] | 10 | echo "$0 [EXECUTOR_NUMBER] [CONFIGURATION] [ADAPTER]" |
Anthony Young | ccd4ea3 | 2011-11-08 17:25:12 -0600 | [diff] [blame] | 11 | exit 1 |
| 12 | } |
| 13 | |
| 14 | # Validate inputs |
| 15 | if [[ "$EXECUTOR_NUMBER" = "" || "$CONFIGURATION" = "" ]]; then |
| 16 | usage |
| 17 | fi |
| 18 | |
| 19 | # Execute configuration script |
Anthony Young | 792b116 | 2011-11-09 22:40:49 -0800 | [diff] [blame^] | 20 | cd configurations && ./$CONFIGURATION.sh $EXECUTOR_NUMBER $CONFIGURATION $ADAPTER |