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

example.post-receive 849B

1234567891011121314151617181920212223242526272829303132333435
  1. ########## CONFIGURATION VALUES ##########
  2. # TMP_GIT_CLONE _must_ match one of the following in coleslawrc:
  3. # * The :repo argument (for a single-site setup) _or_
  4. # * An alist key (for a multi-site setup)
  5. TMP_GIT_CLONE=$HOME/tmp/improvedmeans/
  6. # Set LISP to your preferred implementation. The following
  7. # implementations are currently supported:
  8. # * sbcl
  9. # * ccl
  10. LISP=sbcl
  11. ########## DON'T EDIT ANYTHING BELOW THIS LINE ##########
  12. if cd `dirname "$0"`/..; then
  13. GIT_REPO=`pwd`
  14. cd $OLDPWD || exit 1
  15. else
  16. exit 1
  17. fi
  18. git clone $GIT_REPO $TMP_GIT_CLONE || exit 1
  19. if [ $LISP = sbcl ]; then
  20. sbcl --eval "(ql:quickload 'coleslaw)" --eval "(coleslaw:main \"$TMP_GIT_CLONE\")"
  21. elif [ $LISP = ccl ]; then
  22. echo "(ql:quickload 'coleslaw)(coleslaw:main \"$TMP_GIT_CLONE\")" | ccl -b
  23. else
  24. exit 1
  25. fi
  26. rm -rf $TMP_GIT_CLONE
  27. exit