mu: use new command-parser

This commit is contained in:
Dirk-Jan C. Binnema
2020-01-19 17:32:32 +02:00
parent c7680b78b9
commit c71f683e39
7 changed files with 1291 additions and 1680 deletions

View File

@ -42,42 +42,6 @@ cleanupnote:
tags:
gtags
# this warns about function that have a cyclomatic complexity of > 10,
# which is a sign that it needs some refactoring. requires the pmccabe
# tool. If all is fine, it outputs nothing
cc10:
@$(PMCCABE) `find . -name '*.c' -o -name '*.cc'` \
| grep -v mu-str-normalize.c \
| grep -v mu_str_subject_normalize \
| grep -v tests \
| sort -nr | awk '($$1 > 10)'
# this warns about functions that are over 35 non-comment lines long, which is a
# sign that they need some refactoring. requires the pmccabe tool. if
# all is fine, it outputs nothing
# note, some functions are exempted from this rule.
line35:
@$(PMCCABE) -c `find . -name '*.c' -o -name '*.cc'` \
| grep -v mu-str-normalize.c \
| grep -v mu_str_subject_normalize \
| grep -v config_options_group_find \
| grep -v SCM_DEFINE \
| grep -v tests \
| awk '($$5 > 35)'
# get all todo/fixme messages
fixme:
@grep -i 'FIXME\|TODO' `find src -type f`
# check whether we can run make distcheck from the repo version
gitcheck:
cd `mktemp -d`; \
git clone git://github.com/djcb/mu.git ; \
cd mu; \
autoreconf -i ; \
./configure ; \
make distcheck
EXTRA_DIST= \
TODO \
HACKING \