From 2315e9620f261ad72dc81e9924d581d2155e8811 Mon Sep 17 00:00:00 2001
From: Johannes Mey <johannes.mey@tu-dresden.de>
Date: Wed, 27 Jul 2022 18:22:33 +0200
Subject: [PATCH] add simple script to update all json scene files from their
 yaml versions

---
 config/update-yaml-files.bash | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 config/update-yaml-files.bash

diff --git a/config/update-yaml-files.bash b/config/update-yaml-files.bash
new file mode 100644
index 0000000..1b1c312
--- /dev/null
+++ b/config/update-yaml-files.bash
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# (re-)generate json configs from yaml files.
+# This command requires yq, which can be installed in ubuntu using `snap install yq`.
+
+for FILENAME in config_scene*.yaml objects.yaml; do
+    yq eval -o=json $FILENAME > "${FILENAME%%.*}.json"
+done
\ No newline at end of file
-- 
GitLab