yep, mac needed the start-group stuff turned off.
[feisty_meow.git] / scripts / clam / badness_catcher.sh
1 #!/bin/bash
2 # badness_catcher: runs the command line passed in and catches error conditions.
3
4 #echo args are: $*
5 eval "$@"
6
7 # get exit status.
8 ERR=$?
9
10 if [ $ERR -eq 0 ]; then exit; fi  # exit if no error.
11
12 # print a complaint since there was an error.
13 echo
14 echo "======================="
15 echo
16 echo "Error in project: \"$PROJECT\""
17 echo "  command was: $*"
18 echo
19 echo "======================="
20 source $CLAM_DIR/exit_make.sh
21 exit $ERR
22