mkhelpu 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #! /bin/csh
  2. #-------------------------------------------------------------
  3. #
  4. # Compile REDUCE help info for GNU info format
  5. #
  6. #-------------------------------------------------------------
  7. set package=redhelp
  8. # if ("$1" != "") set package=$1
  9. reduce <<EOF
  10. ON ERRCONT;
  11. symbolic;
  12. on backtrace;
  13. on comp;
  14. in "comphelp.red"\$
  15. in "helpunx.red"\$
  16. in "minitex.red"\$
  17. % TR minitex;
  18. % package := "$1";
  19. %if package="" then << dir_src := "redref/"; package := "redref">>
  20. % else dir_src := "packages/";
  21. dir_src := "$reduce/doc/help/";
  22. package := "redhelp";
  23. job(bldmsg("%w.tex",package),"/dev/null");
  24. <<
  25. terpri();
  26. prin2t "=================================================";
  27. prin2t " SECOND RUN ";
  28. prin2t "=================================================";
  29. >>;
  30. job(bldmsg("%w.tex",package), bldmsg("%w.x",package));
  31. in "sed.red"\$
  32. bye;
  33. EOF
  34. rm redhelp.x
  35. mv redhelp.y redhelp.x
  36. # You now need:
  37. # makeinfo --no-split -o redhelp.info redhelp.x
  38. # rm redhelp.x
  39. # To use the resulting redhelp.info, you need the Gnu "info" program or Xr.
  40. # Say "info -f redhelp.inf" in the former case.