summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-01-09 16:15:35 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-01-10 09:49:25 +0000
commitfcdbd77cc2b909b8a1d0fc8d2e6343bbc278470c (patch)
tree05420ead169a05ae3a2b0a7c4564e230596f1fb0 /check
parente9b941e5218e5e4293bb915b13f831baba246a89 (diff)
downloadsubplot-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-xcheck8
1 files changed, 4 insertions, 4 deletions
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