diff options
Diffstat (limited to 'tools/run_tool.sh')
| -rwxr-xr-x | tools/run_tool.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/run_tool.sh b/tools/run_tool.sh index cec7630..7e09684 100755 --- a/tools/run_tool.sh +++ b/tools/run_tool.sh | |||
| @@ -11,14 +11,14 @@ BIN="tools/run" | |||
| 11 | d="$(date +'%Y-%m-%d-%H-%M-%S')" | 11 | d="$(date +'%Y-%m-%d-%H-%M-%S')" |
| 12 | 12 | ||
| 13 | for t in tools/*; do | 13 | for t in tools/*; do |
| 14 | if [ ! -d "$t" ] || [ -z "$(echo "$t" | grep "$TOOL")" ]; then | 14 | if [ ! -d "$t" ] || ! (echo "$t" | grep -q "$TOOL"); then |
| 15 | continue | 15 | continue |
| 16 | fi | 16 | fi |
| 17 | toolname="$(basename "$t" .c)" | 17 | toolname="$(basename "$t" .c)" |
| 18 | $CC -o $BIN $t/*.c $CUBEOBJ || exit 1; | 18 | $CC -o $BIN "$t"/*.c "$CUBEOBJ" || exit 1; |
| 19 | $BIN | tee "tools/results/$toolname-$d.txt" "tools/results/last.out" | 19 | $BIN | tee "tools/results/$toolname-$d.txt" "tools/results/last.out" |
| 20 | break | 20 | break |
| 21 | done | 21 | done |
| 22 | 22 | ||
| 23 | # $BIN is kept so it can be run manually for profiling | 23 | # $BIN is kept so it can be run manually for profiling |
| 24 | rm -rf $CUBEOBJ | 24 | rm -rf "$CUBEOBJ" |
