4 echo "Usage: $0 [--sparse][--valgrind][--debug] path/to/file.c"
11 if [[ "$1" == "--sparse" ]] ; then
14 elif [[ "$1" == "--valgrind" ]] ; then
17 elif [[ "$1" == "" ]] ; then
20 if [[ "$1" == "--help" ]] ; then
24 if echo $1 |
grep -q ^
- ; then
34 cname
=$
(echo ${cname/.o/.c})
35 if [[ "$cname" == "" ]] ; then
38 if ! test -e $cname ; then
42 oname
=$
(echo ${cname/.c/.o})
43 if ! echo $oname |
grep .o$
> /dev
/null
; then
47 make C
=y CHECK
="$PRE $CMD $POST" $oname