From 1508f1504f7023b55b8a15aa1bb7e181c9b77438 Mon Sep 17 00:00:00 2001 From: fiddlededee Date: Wed, 9 Aug 2023 23:14:05 +0300 Subject: [PATCH] fix: Added debug a-od temporarily --- lib/a-od-debug | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/a-od-debug diff --git a/lib/a-od-debug b/lib/a-od-debug new file mode 100644 index 0000000..c397179 --- /dev/null +++ b/lib/a-od-debug @@ -0,0 +1,24 @@ +#!/bin/bash + +file_name=$1 +output_format="pdf" +template_key="" + +if [ $# -gt 1 ]; then + output_format=$2 +fi + +if [ $# -gt 2 ]; then + template_key=" -f $3" +fi + +if [ $# -gt 3 ]; then + custom_lib=" -c $4" +fi + +a-od-pre -r asciidoctor-mathematical -r asciidoctor-diagram $file_name -b fodt -o pre.xml +a-od-out -i pre.xml -o ${file_name%.*}.fodt_ $template_key $custom_lib +java -jar /usr/local/a-od/lo-kts-converter.main.jar -f $output_format -i ${file_name%.*}.fodt_ + +#rm pre.xml +#rm ${file_name%.*}.fodt_