diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-01-09 16:15:35 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-01-10 09:49:25 +0000 |
commit | fcdbd77cc2b909b8a1d0fc8d2e6343bbc278470c (patch) | |
tree | 05420ead169a05ae3a2b0a7c4564e230596f1fb0 /check | |
parent | e9b941e5218e5e4293bb915b13f831baba246a89 (diff) | |
download | subplot-fcdbd77cc2b909b8a1d0fc8d2e6343bbc278470c.tar.gz |
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 <dsilvers@digital-scurf.org>
Diffstat (limited to 'check')
-rwxr-xr-x | check | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |