summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-27 21:45:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-27 21:45:33 +0100
commit08ff22d0a5ad5dde52977c837588e058de0abe04 (patch)
treefb24ec36c0ec52b39e0cd386f766e642083cbe45
parent248809f2ec181c9fe68a2680405f135e2b1cb6a6 (diff)
set json values to true, not "true"
-rwxr-xr-xconvert.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/convert.zsh b/convert.zsh
index 4efe7e2..9672fe1 100755
--- a/convert.zsh
+++ b/convert.zsh
@@ -329,12 +329,13 @@ extract_wagons_heuristic $icet_411_s1_offset $icet_411_s1_types
extract_wagons_heuristic $icet_411_s2_offset $icet_411_s2_types
extract_wagons_heuristic $icet_415_offset $icet_415_types
extract_wagons_heuristic $ic1_offset $ic1_types
+
extract_wagons $ic2_bt_offset $ic2_bt_bbox $ic2_bt_types
extract_wagons $ic2_sk_offset $ic2_sk_bbox $ic2_sk_types
rm tmp-*
-perl -MJSON -E 'say JSON->new->canonical->encode({map {$_ => true} @ARGV})' \
+perl -MJSON -E 'say JSON->new->canonical->encode({map {$_ => \1} @ARGV})' \
png/*.png(:t:r) > png/wagons.json
chmod -R a+rX png