mkhelpw 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #! /bin/csh
  2. #-------------------------------------------------------------
  3. #
  4. # Compile REDUCE help info for Microsoft help compiler format
  5. #
  6. # After running this script, you need to do, on a PC,
  7. # hc31 $package
  8. # assuming the file $package.hpj is there.
  9. #
  10. #-------------------------------------------------------------
  11. set package=redhelp
  12. # if ("$1" != "") set package=$1
  13. reduce <<EOF
  14. ON ERRCONT;
  15. symbolic;
  16. on backtrace;
  17. on comp;
  18. !*windows := t;
  19. in "comphelp.red"\$
  20. in "helpwin.red"\$
  21. in "minitex.red"\$
  22. % TR minitex;
  23. % package := "$1";
  24. %if package="" then << dir_src := "redref/"; package := "redref">>
  25. % else dir_src := "packages/";
  26. dir_src := "$reduce/doc/help/";
  27. package := "redhelp";
  28. job(bldmsg("%w.tex",package),"/dev/null");
  29. <<
  30. terpri();
  31. prin2t "=================================================";
  32. prin2t " SECOND RUN ";
  33. prin2t "=================================================";
  34. >>;
  35. job(bldmsg("%w.tex",package),"$package.rtf");
  36. %===========================
  37. %
  38. %===========================
  39. % for each s in section_list do print s;
  40. bye;
  41. EOF