MKHELPW.RED 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. %
  2. % This file runs the "*.tex" to "redhelp.rtf" conversion code. As
  3. % well as providing the top level direction to the process it patches up
  4. % for at least some of the places where the conversion code had been
  5. % written in a manner not strongly related to the portability objectives of
  6. % Standard Lisp...
  7. %
  8. symbolic;
  9. off echo;
  10. on backtrace;
  11. on comp;
  12. !*windows := t;
  13. fluid '(package);
  14. package := 'redhelp;
  15. symbolic procedure inf x;
  16. char!-code x;
  17. symbolic procedure channellinelength(f, l);
  18. begin
  19. f := wrs f;
  20. l := linelength l;
  21. wrs f;
  22. return l
  23. end;
  24. symbolic procedure channelprin2(f, x);
  25. begin
  26. f := wrs f;
  27. prin2 x;
  28. wrs f;
  29. return x
  30. end;
  31. symbolic macro procedure channelprintf u;
  32. begin
  33. scalar g;
  34. g := gensym();
  35. return list('prog, list g,
  36. list('setq, g, list('wrs, cadr u)),
  37. 'printf . cddr u,
  38. list('wrs, g))
  39. end;
  40. symbolic procedure channelterpri f;
  41. begin
  42. f := wrs f;
  43. terpri();
  44. wrs f;
  45. end;
  46. symbolic procedure channelreadch f;
  47. begin
  48. scalar c;
  49. f := rds f;
  50. c := readch();
  51. rds f;
  52. return c
  53. end;
  54. in "comphelp.red"$
  55. in "helpwin.red"$
  56. in "minitex.red"$
  57. dir_src := "../help/";
  58. job(bldmsg("%w.tex",package),"null.fil");
  59. delete!-file "null.fil";
  60. job(bldmsg("%w.tex",package),bldmsg("%w.rtf",package));
  61. bye;
  62.