From 4c5ecb5b2a23883c253bd0652f7be475e9086e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20=C3=96hrstr=C3=B6m?= Date: Sat, 25 Dec 2021 14:19:27 +0100 Subject: [PATCH] Add --analyze to README. --- Makefile | 5 ++++ README.md | 1 + deb/collect_copyrights.sh | 10 +++---- deb/create_deb.sh | 55 ++++++++++++++++++++++++++------------- wmbusmeters.1 | 2 ++ 5 files changed, 50 insertions(+), 23 deletions(-) diff --git a/Makefile b/Makefile index 71ce51e..6ada031 100644 --- a/Makefile +++ b/Makefile @@ -210,6 +210,11 @@ deb: wmbusmeters_$(DEBVERSION)_$(DEBARCH).deb check_deb: lintian --no-tag-display-limit wmbusmeters_$(DEBVERSION)_$(DEBARCH).deb +clean_deb: + rm -f wmbusmeters_$(DEBVERSION)_$(DEBARCH).deb + +# Check docs verifies that all options in the source have been mentioned in the README and in the man page. +# Also any option not in the source but mentioned in the docs is warned for as well. check_docs: @cat src/cmdline.cc | grep -o -- '--[a-z][a-z]*' | sort | uniq | grep -v internaltesting > /tmp/options_in_code @cat wmbusmeters.1 | grep -o -- '--[a-z][a-z]*' | sort | uniq | grep -v internaltesting > /tmp/options_in_man diff --git a/README.md b/README.md index de7075b..3f506a5 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,7 @@ As you can use: --alarmexpectedactivity=mon-fri(08-17),sat-sun(09-12) Specify when the timeout is tested, default is mon-sun(00-23) --alarmshell= invokes cmdline when an alarm triggers --alarmtimeout=