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