diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-09 18:47:46 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-09 18:47:46 +0000 |
commit | 3d29cccfebc718d157c7ccd77d82a9594cf2352b (patch) | |
tree | b5120615d5fdc72c0506e1baf29100416a02ea47 | |
parent | b191ac8a2a2f5697aaed29ddebe0f55e5dd47ee9 (diff) | |
parent | cf226367b1fdcb82a870f197f1629313a50ec3f2 (diff) | |
download | summain-rs-3d29cccfebc718d157c7ccd77d82a9594cf2352b.tar.gz |
Merge branch 'fixes' into 'main'
fixes for Ambient
See merge request obnam/summain!36
-rwxr-xr-x | check | 18 | ||||
-rw-r--r-- | debian/control | 5 | ||||
-rwxr-xr-x | debian/rules | 7 |
3 files changed, 16 insertions, 14 deletions
@@ -6,32 +6,38 @@ set -euo pipefail quiet=-q hideok= +offline= + if command -v chronic >/dev/null; then hideok=chronic fi -if [ "$#" -gt 0 ]; then +while [ "$#" -gt 0 ]; do case "$1" in - verbose | -v | --verbose) + -v | --verbose) quiet= hideok= + shift + ;; + --offline) + offline=--offline + shift ;; esac -fi +done got_cargo_cmd() { cargo --list | grep " $1 " >/dev/null } # shellcheck disable=2086 -cargo build --all-targets $quiet +cargo build $offline --all-targets $quiet # shellcheck disable=2086 -got_cargo_cmd clippy && cargo clippy $quiet +got_cargo_cmd clippy && cargo clippy $offline $quiet got_cargo_cmd fmt && cargo fmt -- --check subplot docgen summain.subplot -o summain.html -subplot docgen summain.subplot -o summain.pdf subplot codegen summain.subplot -o test.py rm -f test.log diff --git a/debian/control b/debian/control index c3d39a4..d177b69 100644 --- a/debian/control +++ b/debian/control @@ -8,10 +8,7 @@ Build-Depends: build-essential, dh-cargo, python3, - subplot, - texlive-fonts-recommended, - texlive-latex-base, - texlive-latex-recommended + subplot Homepage: https://summain.liw.fi/ Package: summain diff --git a/debian/rules b/debian/rules index ceff6bc..8f54ee9 100755 --- a/debian/rules +++ b/debian/rules @@ -7,9 +7,8 @@ override_dh_auto_build: true override_dh_auto_install: - cargo install --path=. --root=debian/summain - rm -f debian/summain/.crates.toml - rm -f debian/summain/.crates2.json + cargo install --offline --path=. --root=debian/summain + rm -f debian/*/.crates* override_dh_auto_test: - ./check + ./check --offline |