diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-15 17:41:22 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-09-15 17:41:22 +0000 |
commit | cb77ffe8f3b61e5dd488d918b067efd28c07948e (patch) | |
tree | 487002380e31311809c161f4e5b09638f2f46ccf /check | |
parent | 794ea63e46212941e73ca3933d30431d43d469b3 (diff) | |
parent | 8165ec7c6b418e32ff8518ebd04d0344f2ab6c15 (diff) | |
download | jt2-cb77ffe8f3b61e5dd488d918b067efd28c07948e.tar.gz |
Merge branch 'fix-topic' into 'main'
fix topic names containing dots
See merge request larswirzenius/jt!24
Diffstat (limited to 'check')
-rwxr-xr-x | check | 26 |
1 files changed, 12 insertions, 14 deletions
@@ -3,26 +3,23 @@ set -eu verbose=false -if [ "$#" -gt 0 ] -then - case "$1" in +if [ "$#" -gt 0 ]; then + case "$1" in verbose | -v | --verbose) - verbose=true - shift - ;; - esac + verbose=true + shift + ;; + esac fi hideok= -if command -v chronic > /dev/null -then - hideok=chronic +if command -v chronic >/dev/null; then + hideok=chronic fi -if $verbose -then - hideok= +if $verbose; then + hideok= fi $hideok cargo check --all-targets @@ -38,6 +35,7 @@ $hideok subplot docgen jt.md --output jt.pdf $hideok subplot codegen jt.md --output test.py rm -f test.log -$hideok python3 test.py --log test.log "$@" +target="$(cargo metadata --format-version=1 | jq -r .target_directory)" +$hideok python3 test.py --log test.log --env "CARGO_TARGET_DIR=$target" "$@" echo "Everything seems to be in order." |