add pregexp as a dependency

we will need it for stuff like ce-command-reg-replace

added as a git submodule because common lisp package management
is a bit complex looking and i have no idea what i am doing :P
This commit is contained in:
xfnw 2023-10-28 15:49:56 -04:00
parent f7e9cf3357
commit ca946964f5
4 changed files with 14 additions and 2 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "pregexp"]
path = pregexp
url = https://github.com/ds26gte/pregexp/

7
ce.asd
View File

@ -1,10 +1,13 @@
; -*- lisp -*-
; override file extension
; defaults to .lisp rather than .cl
(defclass file (cl-source-file)
(defclass clfile (cl-source-file)
((type :initform "cl")))
(defsystem :ce
:depends-on (#:asdf)
:components ((:file "ce")))
:components
((:clfile "ce" :depends-on ("pregexp/pregexp"))
(:file "pregexp/pregexp")))

5
ce.cl
View File

@ -1,5 +1,10 @@
; -*- lisp -*-
(require :asdf)
; pregexp seems to not have a provide, so we cannot require
; instead try loading it if not already bundled in via asdf
(when (not (boundp '*pregexp-version*))
(load "pregexp/pregexp.lisp"))
(defvar ce-commands-alist '((#\q . quit)
(#\Newline . ce-command-enter)

1
pregexp Submodule

@ -0,0 +1 @@
Subproject commit d456c686b17fa5cc28039c1bb765daed3e68d2b0