Merge branch 'master' of github.com:dopefishh/dotfiles
[dotfiles.git] / clean / .local / bin / cpm.sh
1 #!/bin/bash
2 set -eo pipefail
3 cpm "$@" |& grep -v\
4 -e "^Warning: Multiple file instances: 'Makefile'"\
5 -e "^Analyzing"\
6 -e "^iTasks Resource Collector: "\
7 -e "^Warning: Unable to setup directory cache: "\
8 -e "^]: is older than .abc file"\
9 -e "^First found at:"\
10 -e "^Also found at:"
11
12 if git rev-parse --show-toplevel 2>/dev/null
13 then
14 gitroot="$(git rev-parse --show-toplevel)"
15 cloogletags -a -c\
16 -d "$gitroot"\
17 -o "$gitroot/.tags"\
18 |& grep -v\
19 -e "^Doc warning: expected @type for '"\
20 -e "^Doc error: missing leading asterisk in '"\
21 -e "^Could not get full path for '" || true
22 fi