coleslaw/cli/launch/build.lisp
Javier Olaechea 6ab3081beb Preliminary CLI work
* src/cli.lisp: utility functions for CLI processing.
  * cli/launch/build.lisp: Builds the blog/site
  * cli/launch/clean.lisp: Deletes the staging and deploy dir
  * cli/launch/rebuild.lisp: Same as clean and build.
  * cli/launch/serve.lisp: Doesn't work.
  * src/config.lisp: load-config now takes the path to the config file
    as an argument instead of trying to discover it itself.
2015-06-23 19:03:17 -05:00

13 lines
409 B
Common Lisp
Executable file

#!/usr/bin/cl -Q -sp coleslaw --entry build
;;;;
;; This script assumes it is executed from the repository's top level directory
;; to determine correctly the blog-dir variable.
;;;;
(defun build (argv)
(declare (ignorable argv))
(let
((old-rev (inferior-shell:run/s
"git log --oneline -1 | awk -e '{print $1}'"))
(blog-dir (uiop/os:getcwd)))
(main blog-dir old-rev)))