aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtools/tool.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/tools/tool.sh b/tools/tool.sh
deleted file mode 100755
index aea203f..0000000
--- a/tools/tool.sh
+++ /dev/null
@@ -1,40 +0,0 @@
1#!/bin/sh
2
3if [ -z "$TOOL" ]; then
4 echo "No tool selected (TOOL variable must be set)"
5 exit 1
6fi
7
8CC="$CC -D_POSIX_C_SOURCE=199309L" # For timer
9
10BIN="tools/run"
11RESULTS="tools/results"
12LAST="$RESULTS/last.out"
13date="$(date +'%Y-%m-%d-%H-%M-%S')"
14
15for t in tools/*; do
16 if [ ! -d "$t" ] || ! (echo "$t" | grep -q "$TOOL"); then
17 continue
18 fi
19 toolname="$(basename "$t" .c)"
20 break
21done
22
23file="$RESULTS/$toolname-$date.txt"
24
25$CC -o $BIN "$t"/*.c "$OBJ" || exit 1;
26
27(
28date +'%Y-%m-%d %H:%M'
29echo ""
30echo "======== config.mk ========"
31cat config.mk
32echo ""
33echo "=== tool configuration ===="
34echo "TOOL=$toolname"
35echo "TOOLARGS=$TOOLARGS"
36echo "CC=$CC"
37echo ""
38echo "======= tool output ======="
39$BIN $TOOLARGS
40) | tee "$file" "$LAST"

Generated with cgit - Back to sebastiano.tronto.net