run
changeset 4 be4de85337e5
parent 0 06dd3b8d90ad
equal deleted inserted replaced
3:a80adbcf4882 4:be4de85337e5
    12 OPTIONS="-i ${FILE} -v voice/De_Carla_22kHz -p data -format WAV -o test.wav"
    12 OPTIONS="-i ${FILE} -v voice/De_Carla_22kHz -p data -format WAV -o test.wav"
    13 
    13 
    14 $BUILD
    14 $BUILD
    15 if [ $? == 0 ]
    15 if [ $? == 0 ]
    16     then
    16     then
    17     echo 
    17     echo
    18     echo "   VirtualReader - Version 0.1"
    18     echo "   VirtualReader - Version 0.1"
    19     echo
    19     echo
    20     echo "       Navigation Keys:"
    20     echo "       Navigation Keys:"
    21     echo " ##############################"
    21     echo " ##############################"
    22     echo " # i: next word               #"
    22     echo " # i: next word               #"
    29     echo " # s: print current sentence  #"
    29     echo " # s: print current sentence  #"
    30     echo " # v: switch verbosity on/off #"
    30     echo " # v: switch verbosity on/off #"
    31     echo " ##############################"
    31     echo " ##############################"
    32     echo "    Press ENTER to Start"
    32     echo "    Press ENTER to Start"
    33     read
    33     read
    34     case $1 in 
    34     case $1 in
    35 	valgrind)
    35 	valgrind)
    36 	    $VALGRIND $PROG $OPTIONS
    36 	    $VALGRIND $PROG $OPTIONS
    37 	    ;;
    37 	    ;;
    38 	strace)
    38 	strace)
    39 	    $STRACE $PROG $OPTIONS
    39 	    $STRACE $PROG $OPTIONS
    40 	    ;;
    40 	    ;;
    41 	gdb)
    41 	gdb)
    42 	    echo "break 67">gdb.exec
    42 	    echo "break 67">gdb.exec
    43 	    echo "r $OPTIONS" >> gdb.exec	   
    43 	    echo "r $OPTIONS" >> gdb.exec
    44 	    DEBUG=1 $GDB -x gdb.exec $PROG
    44 	    DEBUG=1 $GDB -x gdb.exec $PROG
    45 	    rm -f gdb.exec 
    45 	    rm -f gdb.exec
    46 	    ;;
    46 	    ;;
    47 	ddd)
    47 	ddd)
    48 	    echo "break 67">gdb.exec
    48 	    echo "break 67">gdb.exec
    49 	    echo "r $OPTIONS" >> gdb.exec	   
    49 	    echo "r $OPTIONS" >> gdb.exec
    50 	    $DDD -x gdb.exec $PROG
    50 	    $DDD -x gdb.exec $PROG
    51 	    rm -f gdb.exec 
    51 	    rm -f gdb.exec
    52 	    ;;
    52 	    ;;
    53 	splint)
    53 	splint)
    54 	    $SPLINT -Iinclude -DMBROLA -warnposix src/main.c
    54 	    $SPLINT -Iinclude -DMBROLA -warnposix src/main.c
    55 	    ;;
    55 	    ;;
    56 	help)
    56 	help)
    57 	    echo "Usage: run [commands]"
    57 	    echo "Usage: run [commands]"
    58 	    echo "valid commands are: strace, gdb, \
    58 	    echo "valid commands are: strace, gdb, \
    59 ddd, valgrind and help"	    
    59 ddd, valgrind and help"
    60 	    exit 0		
    60 	    exit 0
    61 	    ;;
    61 	    ;;
    62 	*)
    62 	*)
    63 	    $PROG $OPTIONS
    63 	    $PROG $OPTIONS
    64 	    ;;
    64 	    ;;
    65     esac    
    65     esac
    66 fi
    66 fi
    67 
    67 
    68 rm -f audio/*.wav;
    68 rm -f audio/*.wav;