Merge pull request #215 from nohillside/patch-1

Add :oldrev key to call to coleslaw:main
This commit is contained in:
Cthulhux 2024-12-12 14:42:37 +01:00 committed by GitHub
commit ef76a42e4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,11 +24,11 @@ while read oldrev newrev refname; do
echo -e "\n Master updated. Running coleslaw...\n" echo -e "\n Master updated. Running coleslaw...\n"
if [ $LISP = sbcl ]; then if [ $LISP = sbcl ]; then
sbcl --eval "(ql:quickload 'coleslaw)" \ sbcl --eval "(ql:quickload 'coleslaw)" \
--eval "(coleslaw:main \"$TMP_GIT_CLONE\" \"$oldrev\")" \ --eval "(coleslaw:main \"$TMP_GIT_CLONE\" :oldrev \"$oldrev\")" \
--eval "(uiop:quit)" --eval "(uiop:quit)"
elif [ $LISP = ccl ]; then elif [ $LISP = ccl ]; then
ccl -e "(ql:quickload 'coleslaw)" \ ccl -e "(ql:quickload 'coleslaw)" \
-e "(coleslaw:main \"$TMP_GIT_CLONE\" \"$oldrev\")" \ -e "(coleslaw:main \"$TMP_GIT_CLONE\" :oldrev \"$oldrev\")" \
-e "(uiop:quit)" -e "(uiop:quit)"
else else
echo -e "$LISP is not a supported lisp dialect at this time. Exiting.\n" echo -e "$LISP is not a supported lisp dialect at this time. Exiting.\n"