diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-18 07:56:39 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-18 07:56:39 +0200 |
| commit | 65878aa07452b45c3f17c3ab15508400edd46476 (patch) | |
| tree | 7a49e17ecd40552d9c090fb85db9d2fa6bcc63a0 /tools/run_tool.sh | |
| parent | e0f9f9929d80d2c21ae1996b437d9209d498956b (diff) | |
| download | nissy-core-65878aa07452b45c3f17c3ab15508400edd46476.tar.gz nissy-core-65878aa07452b45c3f17c3ab15508400edd46476.zip | |
Some shellcheck
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" |
