From f2740c77c3e3d234b724704482e7b0380c2550d4 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 9 Sep 2022 09:16:38 +0300 Subject: fix: use separate subplot YAML metadata file for new Subplot Subplot has just made a breaking change: the subplot document metadata must be in a separate YAML file, not embedded in the markdown. This adapts Obnam to that. It's a little awkward that Subplot hasn't made a release of this yet, but as I use Subplot from git, I need this now. Sponsored-by: author --- check | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'check') diff --git a/check b/check index 905bc5b..059886d 100755 --- a/check +++ b/check @@ -50,11 +50,11 @@ $hideok cargo build --all-targets got_cargo_cmd fmt && $hideok cargo fmt -- --check $hideok cargo test -subplot docgen obnam.md -o obnam.html -subplot docgen obnam.md -o obnam.pdf +subplot docgen obnam.subplot -o obnam.html +subplot docgen obnam.subplot -o obnam.pdf target="$(cargo metadata --format-version=1 | python3 -c 'import sys, json; o = json.load(sys.stdin); print(o["target_directory"])')" -subplot codegen obnam.md -o test.py +subplot codegen obnam.subplot -o test.py rm -f test.log if [ "$(id -un)" = root ]; then echo Not running tests as root. -- cgit v1.2.1