COMMAND=$(basename $0)
function usage () {
- echo "$COMMAND [-abn]"
+ echo "$COMMAND [-abtn]"
echo -e " -a\tall boxes, not just the test ones"
echo -e " -b\tbuild boxes only"
+ echo -e " -t\tjust clean the trackers"
echo -e " -n\tdry-run"
exit 1
}
build_boxes="mirror $(echo build{1,2,3})"
test_boxes="testplc $(echo testqemu{1,2,3} testqemu32-{1,2,3,4,5})"
-while getopts "abnh" opt ; do
+while getopts "abtnh" opt ; do
case $opt in
a) ALL_BOXES=true ;;
b) BUILD_BOXES_ONLY=true ;;
+ t) TRACKERS_ONLY=true ;;
n) DRY_RUN=true ;;
h|*) usage ;;
esac
elif [ -n "$BUILD_BOXES_ONLY" ] ; then
BOXES="$build_boxes"
CLEAN_TRACKERS=""
+elif [ -n "$TRACKERS_ONLY" ] ; then
+ BOXES=""
+ CLEAN_TRACKERS="yes"
else
BOXES="$test_boxes"
fi