aboutsummaryrefslogtreecommitdiff
path: root/buildall.sh
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2026-01-27 19:19:59 -0800
committerChristian C <cc@localhost>2026-01-27 19:19:59 -0800
commit72693c6cca58ba5f17cbe072765978020b794c7a (patch)
tree4892c20cfc56c4502a1547353893ff9403964ad6 /buildall.sh
parent9d4981f1ea152531494d804d2de0a0c91574bf15 (diff)
SimplificationHEADmaster
Diffstat (limited to 'buildall.sh')
-rwxr-xr-xbuildall.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/buildall.sh b/buildall.sh
new file mode 100755
index 0000000..7cccd23
--- /dev/null
+++ b/buildall.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+make
+
+CLEAN="t"
+
+builder() {
+ SOURCE="$1"
+ SNAME="`basename \"${SOURCE}\"`"
+ DNAME="`dirname \"${SOURCE}\"`"
+ mkdir -p ../output/${DNAME}
+ ../build/prog -s -n 8 -d ${SOURCE} -b ../output/${DNAME}/${SNAME}.bin -p ../output/${DNAME}/${SNAME}.png
+}
+
+cd data/
+for dname in */*; do
+ builder "${dname}" &
+done
+wait
+
+cd ..
+for bname in output/*/*.bin; do
+ python load_c_data.py "${bname}" &
+done
+wait
+
+if [ "${CLEAN}" = "t" ]; then
+ rm output/*/*.bin
+ rm output/*/*.png
+fi