From 5f76405ed8e2c00343be303a86ddbac9016b4eab Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Tue, 14 Mar 2023 20:35:33 +0100 Subject: [PATCH] Show how to add local `quicklisp' projects --- README.org | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 0ee47cc..d1c6b9c 100644 --- a/README.org +++ b/README.org @@ -4450,11 +4450,14 @@ the page [[https://courses.cs.northwestern.edu/325/admin/lisp-setup.php][CS 325: :END: [[https://www.quicklisp.org/][Quicklisp]] is a library manager for Common Lisp. Listing -[[lst:download+verify-quicklisp]] downloads the [[https://www.quicklisp.org/][Quicklisp]] file and verifies its -signature to prevent tampering. Listing [[lst:bootstrap-quicklisp]] tangles to a -shell script allowing to bootstrap [[https://www.quicklisp.org/][Quicklisp]] with [[http://www.sbcl.org/][SBCL]]. Listing +[[lst:download+verify-quicklisp]] downloads the [[https://www.quicklisp.org/][Quicklisp]] installation file and +verifies its signature to prevent tampering. Listing [[lst:bootstrap-quicklisp]] +tangles to a shell script allowing to bootstrap [[https://www.quicklisp.org/][Quicklisp]] with [[http://www.sbcl.org/][SBCL]]. Listing [[lst:quicklisp-sbclrc-file]] tangles to the a [[http://www.sbcl.org/][SBCL]] resource file with [[https://www.quicklisp.org/][Quicklisp]] -support. +support. Listing [[lst:clone-local-projects]] shows how to make local projects out +of unpackaged projects and listing [[lst:register-load-local-projects]] shows how to +register local projects in order to load those unpackaged projects in the same +way as packaged projects. #+caption[Download and verify =quicklisp=]: #+caption: Download and verify =quicklisp=. @@ -4486,6 +4489,26 @@ EOF # End: #+end_src +#+caption[Clone local =quicklisp= projects]: +#+caption: Clone local =quicklisp= projects. +#+name: lst:clone-local-projects +#+begin_src shell -n :dir ~/quicklisp/local-projects :results none :tangle no +git clone https://gitlab.com/criesbeck/cs325.git +git clone git@github.com:ageldama/cl-state-machine.git +#+end_src + +#+caption[Register and load local =quicklisp= projects with dependencies]: +#+caption: Register and load local =quicklisp= projects with dependencies. +#+name: lst:register-load-local-projects +#+begin_src lisp -n :eval never-export :results none :tangle no +(ql:register-local-projects) +(ql:quickload "cs325") +(ql:quickload "cl-state-machine") +(ql:quickload "cl-state-machine-examples") +(ql:quickload "cl-state-machine-graphing") +(ql:quickload "cl-state-machine-test") +#+end_src + #+caption[A =quicklisp= sbclrc file]: #+caption: A =quicklisp= sbclrc file. #+name: lst:quicklisp-sbclrc-file