mkslfile 510 B

123456789101112131415161718192021
  1. #!/bin/csh -f
  2. # mkslfile --- Build Standard LISP form of REDUCE or RLISP file.
  3. # Usage: $reduce/util/mkslfile infile_name [reduce-root_dir]
  4. # Output file is infile_name.sl
  5. # Input taken from src/infile_name.red
  6. # Reduce_root_dir is optional, and will be prepended to the infile src
  7. # directory if supplied.
  8. $reduce/reduce << EOF
  9. linelength 71;
  10. !*force := t; % To expand all macros
  11. flag('(de df dm),'noexpand); % except these
  12. off msg;
  13. on defn;
  14. out "$1.sl";
  15. in "$2src/$1.red"\$
  16. bye;
  17. EOF