diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-07-19 10:32:08 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-07-19 10:32:08 +0000 |
commit | f06b0bccfdb7459be0947a6fd6f726eba4bcf92d (patch) | |
tree | 7fafc5f2d22eaf68c9dcfea5a74fe03d6b0676c8 /check | |
parent | f1590591451f135ca903e20f24ca5a9d0e7fba14 (diff) | |
parent | b130e74f187b2ba22db6654508a6e7e4c721a16e (diff) | |
download | ewww-f06b0bccfdb7459be0947a6fd6f726eba4bcf92d.tar.gz |
Merge branch 'serve-files' into 'master'
Serve files
See merge request larswirzenius/ewww!7
Diffstat (limited to 'check')
-rwxr-xr-x | check | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -3,14 +3,21 @@ set -eu verbose=false -if [ "$#" -gt 0 ] -then +runtest=true +moar=true +while [ "$#" -gt 0 ] && $moar +do case "$1" in verbose | -v | --verbose) verbose=true + shift 1 + ;; + -c | --codegen) + runtest=false + shift 1 ;; esac -fi +done hideok= if command -v chronic > /dev/null @@ -26,7 +33,12 @@ fi codegen() { - $hideok sp-codegen "$1" --output "$2" --run + local run= + if $runtest + then + run=--run + fi + $hideok sp-codegen "$1" --output "$2" $run } docgen() { |