Mercurial > demo / tools/build-image.lisp
changeset 39: |
1ef551e24009 |
parent: |
2015d7277629
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Thu, 11 Apr 2024 18:58:35 -0400 |
permissions: |
-rw-r--r-- |
description: |
added musicbrainz db example |
3 (load "tools/prepare-image.lisp") 5 (defvar *image-load-hook-contents* (uiop:read-file-string "tools/init.lisp")) 6 (defvar *hook-loaded-p* nil) 8 (defun image-load-hook () 9 ;; On MacOS, the TMPDIR variable can change between sessions. 10 (uiop:setup-temporary-directory) 11 ;; If we used this image to deliver another image, we don't 12 ;; want to load the same hook twice 13 (unless *hook-loaded-p* 14 (load (make-string-input-stream *image-load-hook-contents*)) 15 (setf *hook-loaded-p* t))) 17 (compile 'image-load-hook) 19 (pushnew 'image-load-hook sb-ext:*init-hooks*) 21 (format t "Got command line arguments: ~S" (uiop:raw-command-line-arguments)) 23 (sb-ext:save-lisp-and-die 26 #+win32 :type #+win32 "exe" 27 :defaults #P"build/sbcl-console"))