Subversion Repositories wimsdev

Rev

Rev 6646 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. #! /bin/sh
  2.  
  3. if [ -z "$w_wims_session" ] || [ ! -d "$w_wims_home/sessions/$w_wims_session" ]; then exit; fi
  4. if [ -z "$w_toefsource" ] || [ ! -f "$w_toefsource" ]; then exit; fi
  5. if [ -z "$w_toefoutput" ]; then exit; fi
  6.  
  7. basedir=`pwd`
  8. cd $w_wims_home/sessions/$w_wims_session
  9. file=toef.src
  10.  
  11. echo "cat <<$w_toef_keyword" >$file
  12.  
  13. sed 's/\\\\\\toef_var/\$w_toef_var/g' $basedir/$w_toefsource >>$file
  14. echo "
  15. $w_toef_keyword
  16. " >>$file
  17.  
  18. cat <<@ >$w_toefoutput
  19. % TOEF 1.0 type1
  20. % This file is automatically generated. Do not edit by hand!
  21. % Generated by WIMS-Createxo toef-generator.
  22.  
  23. % {
  24. toef_varcnt=$w_toef_varcnt
  25. $w_exodata
  26. @
  27. cat <<@ >>$w_toefoutput
  28. !exit
  29. % }
  30.  
  31. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  32. %%%%%%%%%%%%%%%%% END  OF  TOEF HEADER %%%%%%%%%%%%%%%%%
  33. %%%%%%%%%%%%%%%%% The following is OEF %%%%%%%%%%%%%%%%%
  34. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  35.  
  36. @
  37.  
  38. . ./$file >>$w_toefoutput
  39. rm ./$file
  40.  
  41. rm -rf $w_wims_home/sessions/$w_wims_session/getfile
  42.  
  43. mkdir $w_wims_home/sessions/$w_wims_session/getfile
  44. cp $w_toefoutput $w_wims_home/sessions/$w_wims_session/getfile/$w_fichname
  45.