#! /bin/bash # This script could be replaced by -run on TCC, but support for other compilers # should be at least somewhat maintained. ./build.sh $@ && if [[ "${@: -1}" == "gdb" ]]; then gdb ./uengine elif [[ "${@: -1}" == "valgrind" ]]; then valgrind --leak-check=full ./uengine else time ./uengine fi