aboutsummaryrefslogtreecommitdiff
path: root/data_tol_old/genTestImgs.sh
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-04-26 13:53:46 +1000
committerTerry Truong <terry06890@gmail.com>2022-04-26 13:53:46 +1000
commit04e9444746d3ba8ddcc96d0fd16f1c02adce1389 (patch)
tree0f48275709dc676bf8b9ba3c2dbc9f1beeff7b75 /data_tol_old/genTestImgs.sh
parente8fab23fe92230c2cb42412bb9ea6040ff14f072 (diff)
Have tol data in sqlite db, and add server script that accesses it
Adapt otol-data-converting script to generate otol.db, add server.py script that provides access to that db, and adapt the app to query the server for tol data when needed.
Diffstat (limited to 'data_tol_old/genTestImgs.sh')
-rwxr-xr-xdata_tol_old/genTestImgs.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/data_tol_old/genTestImgs.sh b/data_tol_old/genTestImgs.sh
deleted file mode 100755
index 21b001b..0000000
--- a/data_tol_old/genTestImgs.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-set -e
-
-#generate tol.json from tol.txt
-cat tolData.txt | ./txtTreeToJSON.py > tolData.json
-
-#reads through tolData.json, gets names, and generates image for each name
-cat tolData.json | \
- gawk 'match ($0, /"name"\s*:\s*"([^"]*)"/, arr) {print arr[1]}' | \
- while read; do
- convert -size 200x200 xc:khaki +repage \
- -size 150x150 -fill black -background None \
- -font Ubuntu-Mono -gravity center caption:"$REPLY" +repage \
- -gravity Center -composite -strip ../public/img/"$REPLY".png
- done
-