diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-02 18:37:36 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-03 10:25:03 +0200 |
| commit | b8d17736ce2c85174a47c7200ef6d19a51d0c347 (patch) | |
| tree | e62a8eb0c2ccf05be9b0b0791915e9aa1fca46e8 /tools/run_tool.sh | |
| parent | 8d3fe446815a1631876e4170747bc6cb03a6bbf8 (diff) | |
| download | nissy-core-b8d17736ce2c85174a47c7200ef6d19a51d0c347.tar.gz nissy-core-b8d17736ce2c85174a47c7200ef6d19a51d0c347.zip | |
Do not run make clean automatically on every build and other Makefile changes
Diffstat (limited to 'tools/run_tool.sh')
| -rwxr-xr-x | tools/run_tool.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tools/run_tool.sh b/tools/run_tool.sh deleted file mode 100755 index 2216a66..0000000 --- a/tools/run_tool.sh +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if [ -z "$TOOL" ]; then | ||
| 4 | echo "No tool selected (TOOL variable must be set)" | ||
| 5 | exit 1 | ||
| 6 | fi | ||
| 7 | |||
| 8 | CC="$CC -D_POSIX_C_SOURCE=199309L" # For timer | ||
| 9 | |||
| 10 | BIN="tools/run" | ||
| 11 | d="$(date +'%Y-%m-%d-%H-%M-%S')" | ||
| 12 | |||
| 13 | for t in tools/*; do | ||
| 14 | if [ ! -d "$t" ] || ! (echo "$t" | grep -q "$TOOL"); then | ||
| 15 | continue | ||
| 16 | fi | ||
| 17 | toolname="$(basename "$t" .c)" | ||
| 18 | $CC -o $BIN "$t"/*.c "$CUBEOBJ" || exit 1; | ||
| 19 | $BIN $TOOLARGS \ | ||
| 20 | | tee "tools/results/$toolname-$d.txt" "tools/results/last.out" | ||
| 21 | break | ||
| 22 | done | ||
| 23 | |||
| 24 | # $BIN is kept so it can be run manually for profiling | ||
| 25 | rm -rf "$CUBEOBJ" | ||
