Mercurial > demo / tools/prepare-image.lisp
changeset 31: |
77da08c7f445 |
parent: |
aa37feddcfb2
|
child: |
1ef551e24009 |
author: |
ellis <ellis@rwest.io> |
date: |
Sun, 18 Jun 2023 22:25:28 -0400 |
permissions: |
-rw-r--r-- |
description: |
bugfixes, tweaks to run.lisp |
3 ;; For SBCL, if you don't have SBCL_HOME set, then we won't be able to require this later. 5 (require 'sb-introspect) 12 (defvar *cwd* (uiop:getcwd)) 14 (defun update-output-translations (root) 15 (asdf:initialize-output-translations 16 `(:output-translations 17 :inherit-configuration 19 ,(format nil "~abuild/asdf-cache/~a/" root 20 (uiop:implementation-identifier)))))) 22 (update-output-translations *cwd*) 26 (require :sb-rotate-byte) 28 (asdf:register-preloaded-system :sb-rotate-byte) 29 (asdf:register-preloaded-system :sb-cltl2)) 31 (ql:update-all-dists :prompt nil) 33 ;; is the package name already loaded as a feature? uhh look it up 34 (pushnew :demo *features*) 36 (defun update-project-directories (cwd) 37 (flet ((push-src-dir (name) 38 (let ((dir (pathname (format nil "~a~a/" cwd name)))) 39 (when (probe-file dir) 40 (push dir ql:*local-project-directories*))))) 43 (push-src-dir "vendor"))) 45 (update-project-directories *cwd*) 47 (defun maybe-configure-proxy () 48 (let ((proxy (uiop:getenv "HTTP_PROXY"))) 49 (when (and proxy (> (length proxy) 0)) 50 (setf ql:*proxy-url* proxy)))) 52 (maybe-configure-proxy) 54 (ql:quickload "log4cl") 55 (ql:quickload "prove-asdf") 57 (log:info "*local-project-directories: ~S" ql:*local-project-directories*) 59 (ql:register-local-projects)