add music control to dwm
[dotfiles.git] / shell / .local / bin / cpm.sh
1 #!/bin/bash
2 set -e
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 if [[ "${PIPESTATUS[0]}" -ne 0 ]]
12 then
13 exit "${PIPESTATUS[0]}"
14 fi
15
16 if git rev-parse --show-toplevel 2>/dev/null
17 then
18 cloogletags -a -c\
19 -d "$(git rev-parse --show-toplevel)"\
20 -d "$CLEAN_HOME/lib/"\
21 -o "$CLEAN_HOME/lib/tags"\
22 |& grep -v\
23 -e "^Doc warning: expected @type for '"\
24 -e "^Doc error: missing leading asterisk in '"\
25 -e "^Could not get full path for '"
26 fi