author | Alan Dipert
<alan@dipert.org> 2023-05-26 05:08:46 UTC |
committer | Alan Dipert
<alan@dipert.org> 2023-05-26 05:08:46 UTC |
Makefile | +11 | -0 |
build.lisp | +17 | -0 |
croncal.asd | +15 | -0 |
src/croncal.lisp | +6 | -0 |
src/package.lisp | +5 | -0 |
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..298ff5d --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +SOURCES := $(shell find src/ -name '*.lisp') + +all: croncal + +croncal: croncal.asd build.lisp $(SOURCES) + ecl --load build.lisp + +clean: + rm -f croncal + +.PHONY: clean diff --git a/build.lisp b/build.lisp new file mode 100644 index 0000000..5de627e --- /dev/null +++ b/build.lisp @@ -0,0 +1,17 @@ +(let* ((req-version "2023-02-15") + (ql-dist (ql-dist:dist "quicklisp")) + (ql-dist-version (slot-value ql-dist 'ql-dist:version))) + (when (not (string= req-version ql-dist-version)) + (ql-dist:install-dist + "http://beta.quicklisp.org/dist/quicklisp/2023-02-15/distinfo.txt" + :prompt nil + :replace t))) + +(pushnew (ext:getcwd) ql:*local-project-directories*) +(ql:register-local-projects) +(ql:quickload :croncal) +(asdf:make-build :croncal + :type :program + :move-here #P"./" + :epilogue-code '(croncal:main)) +(si:quit) diff --git a/croncal.asd b/croncal.asd new file mode 100644 index 0000000..42a58b8 --- /dev/null +++ b/croncal.asd @@ -0,0 +1,15 @@ +(asdf:defsystem #:croncal + :description "Generate calendars from crontabs." + :author "Alan Dipert <alan@dipert.org>" + :license "MIT" + :version "1.0.0" + :depends-on (;#:iclendar + #:adopt + #:asdf + #:local-time + #:uiop + #:yacc) + :pathname "src/" + :serial t + :components ((:file "package") + (:file "croncal"))) diff --git a/src/croncal.lisp b/src/croncal.lisp new file mode 100644 index 0000000..d7bee1c --- /dev/null +++ b/src/croncal.lisp @@ -0,0 +1,6 @@ +(in-package #:croncal) + +(defun main () + (format t "Success! Arguments: ~{~a~^, ~}~%" (ext:command-args)) + (si:quit 0)) + diff --git a/src/package.lisp b/src/package.lisp new file mode 100644 index 0000000..d7e60d8 --- /dev/null +++ b/src/package.lisp @@ -0,0 +1,5 @@ +(cl:in-package #:common-lisp-user) + +(defpackage #:croncal + (:use #:cl) + (:export #:main))