#!/bin/bash CMD="./build/default/src/icfp08radar localhost 17676" ./waf distclean && ./waf configure && ./waf build --targets icfp08radar if [ "$1" == "--gdb" ]; then CMD="gdb --args ${CMD}" elif [ "$1" == "--valgrind" ]; then CMD="valgrind --args ${CMD}" fi exec $CMD