grgcomp.sl 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. %==========================================================================%
  2. % GRG 3.2 Compilation [PSL] (C) 1988-96 Vadim V. Zhytnikov %
  3. %==========================================================================%
  4. % This file is distributed without any warranty. You may modify it but you %
  5. % are not allowed to remove author's name and/or distribute modified file. %
  6. %==========================================================================%
  7. % Set here amount of required free BPS or nil ...
  8. (setq free!-bps!-size 45000)
  9. (progn
  10. (terpri)
  11. (prin2 "Compiling GRG 3.2, wait few minutes.") (terpri)
  12. (prin2 "After several `*** Init code length is #'") (terpri)
  13. (prin2 "messages the compilation should be completed.") (terpri)
  14. (prin2 "Watch possible error messages preceded by `*****' ...") (terpri)
  15. (terpri)
  16. (wrs (open "grgcomp.log" 'output))
  17. )
  18. (de compile!-file!> (bin src)
  19. (prog (wcc)
  20. (setq wcc (wrs nil))
  21. (prin2 "Compiling `") (prin2 bin) (prin2 "' ...") (terpri)
  22. (wrs wcc)
  23. (terpri) (prin2 "### Compiling `") (prin2 bin) (prin2 "' ...") (terpri)
  24. (setq !*comp t)
  25. (faslout bin)
  26. (dskin src)
  27. (faslend)
  28. (setq !*comp nil)
  29. ))
  30. % Loading compiler ...
  31. (load compiler)
  32. % Do we need symget.dat ?
  33. % (cond
  34. % ((and (getd 'filep) (filep "$reduce/util/symget.dat"))
  35. % (dskin "$reduce/util/symget.dat") ))
  36. % Enlarging BPS if necessary ...
  37. (cond
  38. ((and free!-bps!-size (getd 'set!-bps!-size) (getd 'free!-bps)
  39. (lessp (free!-bps) free!-bps!-size))
  40. (set!-bps!-size free!-bps!-size)))
  41. (dskin "grgmacro.sl" )
  42. (dskin "grgdecl.sl" )
  43. (compile!-file!> "grg" "grg.sl" )
  44. (compile!-file!> "grg32" "grg32.sl" )
  45. (compile!-file!> "grgdecl" "grgdecl.sl" )
  46. (compile!-file!> "grggeom" "grggeom.sl" )
  47. (compile!-file!> "grggrav" "grggrav.sl" )
  48. (compile!-file!> "grginit" "grginit.sl" )
  49. (compile!-file!> "grgclass" "grgclass.sl" )
  50. (compile!-file!> "grgcomm" "grgcomm.sl" )
  51. (compile!-file!> "grgcoper" "grgcoper.sl" )
  52. (compile!-file!> "grgmain" "grgmain.sl" )
  53. (compile!-file!> "grgmater" "grgmater.sl" )
  54. (compile!-file!> "grgprin" "grgprin.sl" )
  55. (compile!-file!> "grgproc" "grgproc.sl" )
  56. (compile!-file!> "grgtrans" "grgtrans.sl" )
  57. (compile!-file!> "grgcfg" "grgcfg.sl" )
  58. (progn
  59. (terpri) (prin2 "### All done.") (terpri)
  60. (wrs nil)
  61. (terpri)
  62. (prin2 "GRG has been compiled.") (terpri)
  63. (prin2 "Move all created grg*.b files in the $reduce/fasl") (terpri)
  64. (prin2 "directory or keep them in your working directory.") (terpri)
  65. )
  66. (bye)
  67. %==========================================================================%