diff options
author | Yale AI Dept <ai@nebula.cs.yale.edu> | 1993-07-14 13:08:00 -0500 |
---|---|---|
committer | Duncan McGreggor <duncan.mcgreggor@rackspace.com> | 1993-07-14 13:08:00 -0500 |
commit | 4e987026148fe65c323afbc93cd560c07bf06b3f (patch) | |
tree | 26ae54177389edcbe453d25a00c38c2774e8b7d4 /com/lispworks/savesys-xlib |
Import to github.
Diffstat (limited to 'com/lispworks/savesys-xlib')
-rwxr-xr-x | com/lispworks/savesys-xlib | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/com/lispworks/savesys-xlib b/com/lispworks/savesys-xlib new file mode 100755 index 0000000..d1e81a0 --- /dev/null +++ b/com/lispworks/savesys-xlib @@ -0,0 +1,52 @@ +#!/bin/csh +# +# savesys -- build a saved executable in bin/new-lispworks-haskell +# +# +cd $Y2 +setenv PRELUDEBIN $Y2/progs/prelude/lispworks +if !(-e $PRELUDEBIN/Prelude.wfasl) then + echo "Build the prelude first, stupid..." + exit + endif +setenv LIBRARYBIN $Y2/progs/lib/X11/lispworks +if !(-e $LIBRARYBIN/xlib.wfasl) then + echo "Build the xlib stuff first, silly..." + exit + endif +$LISPWORKS <<EOF +;;; Load the Haskell system. +(load "com/lispworks/patches/safe-fo-closure.wfasl") +(make-package "MUMBLE-IMPLEMENTATION" :use '("LISP")) +(load "cl-support/cl-init") +;;; Set various internal switches to appropriate values for running +;;; Haskell code. +(proclaim '(optimize (speed 3) (safety 0) (compilation-speed 0))) +(setf *load-verbose* nil) +(setf *compile-verbose* nil) +(in-package :mumble-user) +(setf *printers* '(compiling loading)) +(setf *optimizers* '()) +(setf *compile-interface* '#f) +;;; Load the prelude. +(compile/load *prelude-unit-filename*) +;;; Load the X support. +(compile/load "\$HASKELL_LIBRARY/X11/xlib") +(setf *haskell-compiler-update* + (string-append *haskell-compiler-update* "-X11")) +;;; Set up the saved system. +(define (haskell-toplevel) + ;; Need to reset pathname defaults + (setf lisp:*default-pathname-defaults* (lisp:truename "")) + (load-init-files) + (do () ('#f) + (lisp:with-simple-restart (restart-haskell "Restart Haskell.") + (heval)))) +(define (restart-haskell) + (lisp:invoke-restart 'restart-haskell)) +(lw:save-image "bin/new-lispworks-clx-haskell" + :gc '#t + :normal-gc '#f ; don't reset gc parameters + :restart-function 'haskell-toplevel) +(lw:bye) +EOF |