To save a new image, create a suitable file
save-config.lisp
as described in the section "Saving and testing the configured image" in the LispWorks
Release Notes and Installation Guide
. Such a file should firstly call
(load-all-patches)
, then load any desired configuration, modules and application code, and lastly call
(quit)
.
Then you run LispWorks with a command line which passes your file as an initialization file.
On Mac OS X, run Terminal.app to get a shell, and enter a line like this at the prompt:
% lispworks-4-4-0-darwin -siteinit - -init /tmp/save-config.lisp
On Windows, run Command Prompt to get a DOS shell, and enter a line like this:
C:\Program Files\Xanalys\LispWorks>lispworks-4400 -siteinit - -init C:\temp\save-config.lisp
On Linux, get a shell and enter a line like this:
% lispworks-4400 -siteinit - -init /tmp/save-config.lisp
On UNIX, get a shell and enter a line like this:
% lispworks-4-4-0-sparc-solaris -siteinit - -init /tmp/save-config.lisp
When the command exits, a new image has been saved. You can run this new image directly from the command line, or create a shortcut or symbolic link to make it convenient to run.
With all the command lines above, if you perform the task frequently, make a script or a shortcut containing the command line, and run that.