From fcdbd77cc2b909b8a1d0fc8d2e6343bbc278470c Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 9 Jan 2021 16:15:35 +0000 Subject: resource: Switch from 'templates' to 'share' In a general sense, we will want to have more than just template files as resources. This shifts from the concept that the only thing resource-wise that subplot has is templates, to a more general shared resources concept without a default path beyond CWD. Signed-off-by: Daniel Silverstone --- check | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'check') diff --git a/check b/check index efb7195..fb5f9c6 100755 --- a/check +++ b/check @@ -28,7 +28,7 @@ TOPDIR=$(pwd) _codegen() { $hideok cargo run $quiet --package subplot --bin sp-codegen -- \ - "$1" --output "$2" --templates "${TOPDIR}/templates" + "$1" --output "$2" --resources "${TOPDIR}/share" } codegen() { @@ -48,7 +48,7 @@ docgen() { # Run unit tests for the Python template. (set -eu - cd templates/python + cd share/templates/python for x in *_tests.py do $hideok echo "Unit tests: $x" @@ -58,13 +58,13 @@ docgen() { if command -v flake8 > /dev/null then - $hideok flake8 templates/python lib/*.py --exclude=template.py + $hideok flake8 share/templates/python lib/*.py fi if command -v shellcheck > /dev/null then shellcheck check ./*.sh - find templates/bash -name '*.sh' ! -name template.sh -exec shellcheck '{}' + + find share/templates/bash -name '*.sh' -exec shellcheck '{}' + fi $hideok cargo build --all-targets -- cgit v1.2.1