Debian Codegraph @

tests/prep/Heretests/Anick/charbmcalc

raw
1 if [ -f charscriptpattern ]; then
2 if test "$#" != 2; then
3 echo \*\*\*\*\* Wrong number \($#\) of arguments
4 echo \*\*\*\*\* Usage\: calc \<GB_file.a\> \<characteristic\>
5 exit
6 fi
7 echo Removing the old script...
8 rm -f __charscript.sl __charscript.tmp
9 sed ''/INSTANCE/s//$1/'' charscriptpattern > __charscript.tmp
10 sed ''/CHARACTERISTIC/s//$2/'' __charscript.tmp > __charscript.sl
11 __runCharbergbg $1 $2
12 else
13 echo Cannot find \"charscriptpattern\" file, aborting...
14 fi
15
16 echo charbmcalc script done, but __runCharbergbg may run.