From f127e1e955b638a8397a27adda2dd51c101c37ae Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 14 Feb 2025 21:41:21 +0000 Subject: Update gitignore, add requirements to README, rework bob and build --- .gitignore | 1 + README.txt | 8 ++++++++ bob.lisp | 13 +++++++++---- build | 1 + 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5b224cd..9b74c50 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ TAGS bin/ +/system-index.txt diff --git a/README.txt b/README.txt index e7ca529..4ebc9fe 100644 --- a/README.txt +++ b/README.txt @@ -16,3 +16,11 @@ Goals: - Games may have up to 12 players - Games may include bots - Bots have different ranks of difficulty + +Requirements: +- Steele Bank Common Lisp (http://www.sbcl.org/) +- Quick Lisp (https://www.quicklisp.org/beta/) + +Run: + $ ./build +to compile the program. diff --git a/bob.lisp b/bob.lisp index 993b455..15368e0 100644 --- a/bob.lisp +++ b/bob.lisp @@ -13,11 +13,12 @@ ;;; Commentary: -;; Little bit of code scaffolding that makes it easy to load or build the -;; system. Named after "Bob the Builder". +;; Code scaffolding to make loading/building the system easy. Named after "Bob +;; the Builder". ;;; Code: +;; Try and push the current directory into the quicklisp project directories. (pushnew (truename (uiop:getcwd)) ql:*local-project-directories*) @@ -27,9 +28,13 @@ (in-package :bob) +(defun init () + (ql:quickload :cantedraw)) + (defun load-all () - (ql:quickload :cantedraw :verbose t)) + (init) + (asdf:load-system :cantedraw)) (defun build () - (load-all) + (init) (asdf:make :cantedraw)) diff --git a/build b/build index f03b87e..29ab9de 100755 --- a/build +++ b/build @@ -2,6 +2,7 @@ set -xe +rm -f ./bin/cantedraw sbcl --non-interactive \ --load "./bob.lisp" \ --eval "(bob:build)" -- cgit v1.2.3-13-gbd6f