From e6fcb312b64892c3c1026d710e54c924ceafab75 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Sun, 26 May 2024 18:00:39 -0500 Subject: [PATCH] Rename eksd-unix package, and INVOKE to MAIN I feel MAIN is a bit more clear a package-name, and eksd.unis follows convention a little better than eksd-unix, as a package-name. --- README.md | 4 ++-- eksd-unix.lisp | 10 +++++----- eksd.asd | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 74d7662..bbaa1cd 100644 --- a/README.md +++ b/README.md @@ -60,8 +60,8 @@ Making a binary requires a Lisp (I recommend SBCL) and Quicklisp Put this repository into your `quicklisp/local-projects/`, then run, in your lisp interpreter: ``` -# (ql:quickload '(eksd eksd-unix)) -# (save-lisp-and-die "eksd" :toplevel #'eksd-unix:invoke :executable t) +# (ql:quickload '(eksd eksd.unix)) +# (save-lisp-and-die "eksd" :toplevel #'eksd.unix:main :executable t) ``` And bam, you've made a binary. Cool. diff --git a/eksd-unix.lisp b/eksd-unix.lisp index 1fb9a42..2ed1f05 100644 --- a/eksd-unix.lisp +++ b/eksd-unix.lisp @@ -1,4 +1,4 @@ -;;;; eksd-unix: UNIX-style cli interface for the xxd-clone eksd. +;;;; eksd.unix: UNIX-style cli interface for the xxd-clone eksd. ;; Copyright © 2019–2024 Jaidyn Ann ;; @@ -15,12 +15,12 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . -(defpackage :eksd-unix +(defpackage :eksd.unix (:use :cl :eksd) - (:export :invoke + (:export :main *text-table*)) -(in-package :eksd-unix) +(in-package :eksd.unix) ;;; ————————————————————————————————————— @@ -77,7 +77,7 @@ ;;; Main - Invocation ;;; ————————————————————————————————————— ;; nil → nil -(defun invoke () +(defun main () "Actual invocation of the program. This is what you should set as :toplevel." (multiple-value-bind (opts free) (opts:get-opts) (when-opt opts :help (help)) diff --git a/eksd.asd b/eksd.asd index 992f2f0..f760999 100755 --- a/eksd.asd +++ b/eksd.asd @@ -7,7 +7,7 @@ :depends-on () :components ((:file "eksd"))) -(defsystem "eksd-unix" +(defsystem "eksd.unix" :version "0.11" :license "GPLv3" :author "Jaidyn Ann "