first check-in of feisty meow codebase. many things broken still due to recent
[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 #echo args are: $*
4 eval $*
5 ERR=$?  # get exit status.
6 if [ $ERR -eq 0 ]; then exit; fi  # exit if no error.
7 # print a complaint if there was an error.
8 echo
9 echo "Error in project \"$PROJECT\"!"
10 echo "  command=\"$*\"."
11 echo
12 source $CLAM_DIR/exit_make.sh
13 exit $ERR