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

example.post-receive 912B

12345678910111213141516171819202122232425262728293031323334353637
  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)" \
  21. --eval "(coleslaw:main \"$TMP_GIT_CLONE\")" \
  22. --eval "(coleslaw::exit)"
  23. elif [ $LISP = ccl ]; then
  24. echo "(ql:quickload 'coleslaw)(coleslaw:main \"$TMP_GIT_CLONE\")(coleslaw::exit)" | ccl -b
  25. else
  26. exit 1
  27. fi
  28. rm -rf $TMP_GIT_CLONE
  29. exit