nur-sery/check-nur.sh

20 lines
432 B
Bash
Raw Normal View History

2024-06-17 23:01:46 +04:00
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
source /etc/nulib.sh || exit 1
include_wip=
args=(
"vérifier que src/ n'utilise pas de classes de nur\\"
#"usage"
-w,--include-wip .
)
parse_args "$@"; set -- "${args[@]}"
if [ -n "$include_wip" ]; then
function filter() { cat; }
else
function filter() { grep -v '^src/wip/'; }
fi
grep -rP '^use nur\\(?!sery)' src | filter