4 echo "Usage: $0 [--sparse][--valgrind][--debug] path/to/file.c"
10 WINE_ARGS
="-p=wine --full-path -D__i386__"
13 if [[ "$1" == "--sparse" ]] ; then
16 elif [[ "$1" == "--valgrind" ]] ; then
19 elif [[ "$1" == "" ]] ; then
22 if [[ "$1" == "--help" ]] ; then
26 if echo $1 |
grep -q ^
- ; then
36 cname
=$
(echo ${cname/.o/.c})
37 if [[ "$cname" == "" ]] ; then
40 if ! test -e $cname ; then
44 oname
=$
(echo ${cname/.c/.o})
45 if ! echo $oname |
grep .o$
> /dev
/null
; then
51 file_dir
=$
(dirname $oname)
52 o_short_name
=$
(basename $oname)
54 make CC
="$PRE $CMD $POST $WINE_ARGS" $o_short_name