Skip to content

Instantly share code, notes, and snippets.

@PuercoPop
Created August 15, 2014 21:10
Show Gist options
  • Save PuercoPop/b145de71f117556089db to your computer and use it in GitHub Desktop.
Save PuercoPop/b145de71f117556089db to your computer and use it in GitHub Desktop.
#!/usr/bin/cl -Q -sp coleslaw --entry entry
;;;;
;; This script assumes it is executed from the repository's top level directory
;; to determine correctly the blog-dir variable.
;;;;
;; (coleslaw:preview #P"/home/puercopop/Projects/RunaRimac/hello-world.md")
(defun entry (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 "822f803")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment