From 4ea939bf2b2b1e00824bdbdc45a4010d1c41eca9 Mon Sep 17 00:00:00 2001 From: Parker Liu Date: Thu, 17 Feb 2022 17:48:31 +0800 Subject: [PATCH] Add shell script for generate parser files of persistance config --- docs/json-persistence/gen-persists-parser.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 docs/json-persistence/gen-persists-parser.sh diff --git a/docs/json-persistence/gen-persists-parser.sh b/docs/json-persistence/gen-persists-parser.sh new file mode 100755 index 00000000..068d71d6 --- /dev/null +++ b/docs/json-persistence/gen-persists-parser.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +outdir=${outc_dir:-"."} + +json-autotype --clang --no-autounify --debug -t json_node ./json_adapter.json -o json_adapter.c +json-autotype --clang --no-autounify --debug -t json_datatags ./json_datatags.json -o json_datatags.c +json-autotype --clang --no-autounify --debug -t json_group_configs ./json_group_configs.json -o json_group_configs.c +json-autotype --clang --no-autounify --debug -t json_plugin ./json_plugin.json -o json_plugin.c +json-autotype --clang --no-autounify --debug -t json_subscriptions ./json_subs.json -o json_subs.c + +mv *.c *.h ${outdir}/