Flexible Lisp Blogware. Fork for personal use. Mirrored from https://github.com/kingcons/coleslaw originally.

dump-db.lisp 585B

123456789101112131415161718
  1. (eval-when (:compile-toplevel :load-toplevel :execute)
  2. (ql:quickload '(coleslaw cl-store)))
  3. (in-package :coleslaw)
  4. (defun main ()
  5. (let ((db-file (rel-path (user-homedir-pathname) ".coleslaw.db")))
  6. (format t "~%~%Coleslaw loaded. Attempting to load config file.~%")
  7. (load-config "")
  8. (format t "~%Config loaded. Attempting to load blog content.~%")
  9. (load-content)
  10. (format t "~%Content loaded. Attempting to dump content database.~%")
  11. (cl-store:store *site* db-file)
  12. (format t "~%Content database saved to ~s!~%~%" (namestring db-file))))
  13. (main)
  14. (exit)