mkinfo.red 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. %
  2. % This file arranges to convert the TEX-formatted Reduce help files
  3. % info GNU-info format.
  4. %
  5. symbolic;
  6. off echo;
  7. on comp;
  8. fluid '(package);
  9. package := "redhelp";
  10. symbolic procedure inf x;
  11. char!-code x;
  12. symbolic procedure channellinelength(f, l);
  13. begin
  14. f := wrs f;
  15. l := linelength l;
  16. wrs f;
  17. return l
  18. end;
  19. symbolic procedure channelprin2(f, x);
  20. begin
  21. f := wrs f;
  22. prin2 x;
  23. wrs f;
  24. return x
  25. end;
  26. symbolic macro procedure channelprintf u;
  27. begin
  28. scalar g;
  29. g := gensym();
  30. return list('prog, list g,
  31. list('setq, g, list('wrs, cadr u)),
  32. 'printf . cddr u,
  33. list('wrs, g))
  34. end;
  35. symbolic procedure channelterpri f;
  36. begin
  37. f := wrs f;
  38. terpri();
  39. wrs f;
  40. end;
  41. symbolic procedure channelreadch f;
  42. begin
  43. scalar c;
  44. f := rds f;
  45. c := readch();
  46. rds f;
  47. return c
  48. end;
  49. in "comphelp.red"$
  50. in "helpunx.red"$
  51. in "minitex.red"$
  52. dir_src := "~/reduce/doc/help/";
  53. job(bldmsg("%w.tex",package), "null.fil");
  54. delete!-file "null.fil";
  55. job(bldmsg("%w.tex",package), bldmsg("%w.x",package));
  56. in "sed.red"$
  57. bye;