amr_chk.csh

来自「Trolltech公司发布的图形界面操作系统。可在qt-embedded-2.3」· CSH 代码 · 共 65 行

CSH
65
字号
#!/bin/csh -fb## Unix shell script to check correct installation of AMR# speech encoder and decoder## $Id $if ("$1" == "-vad2") then    set vad=2;    shift;else if ("$1" == "-vad1") then    set vad=1;    shift;else    set vad=1;endifif ("$1" == "unix") then    set BASEin=spch_unx;    if ($vad == 1) then        set BASEout = $BASEin;    else        set BASEout = spch_un2;    endifelse if ("$1" == "dos") then    set BASEin = spch_dos;    if ($vad == 1) then        set BASEout = $BASEin;    else        set BASEout = spch_do2;    endifelse    echo "Use:    $0 [-vad2] dos"    echo "  or    $0 [-vad2] unix"    exit -1;endif    ./encoder -dtx -modefile=allmodes.txt $BASEin.inp tmp.codecho ""cmp tmp.cod $BASEout.codif ($status == 0) then    echo "##################################################"    echo "# AMR encoder executable installation successful #"    echo "##################################################"else    echo "#########################################################"    echo "# \!\!\! ERROR in AMR encoder installation verification \!\!\!#"    echo "#########################################################"    exit -1endif./decoder $BASEout.cod tmp.outecho ""cmp tmp.out $BASEout.outif ($status == 0) then    echo "##################################################"    echo "# AMR decoder executable installation successful #"    echo "##################################################"else    echo "#########################################################"    echo "# \!\!\! ERROR in AMR decoder installation verification \!\!\!#"    echo "#########################################################"    exit -1endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?