Ver código fonte

Last minute backwards compatibility fix for people on very old SBCLs.

Brit Butler 10 anos atrás
pai
commit
f27172a1f7
2 arquivos alterados com 4 adições e 8 exclusões
  1. 2 2
      examples/example.post-receive
  2. 2 6
      src/util.lisp

+ 2 - 2
examples/example.post-receive

@@ -25,9 +25,9 @@ while read oldrev newrev refname; do
25 25
         if [ $LISP = sbcl ]; then
26 26
             sbcl --eval "(ql:quickload 'coleslaw)" \
27 27
                  --eval "(coleslaw:main \"$TMP_GIT_CLONE\" \"$oldrev\")" \
28
-                 --eval "(coleslaw::exit)"
28
+                 --eval "(uiop:quit)"
29 29
         elif [ $LISP = ccl ]; then
30
-            ccl -e "(ql:quickload 'coleslaw) (coleslaw:main \"$TMP_GIT_CLONE\" \"$oldrev\") (coleslaw::exit)"
30
+            ccl -e "(ql:quickload 'coleslaw) (coleslaw:main \"$TMP_GIT_CLONE\" \"$oldrev\") (uiop:quit)"
31 31
         else
32 32
             echo -e "$LISP is not a supported lisp dialect at this time. Exiting.\n"
33 33
             exit 1

+ 2 - 6
src/util.lisp

@@ -54,13 +54,9 @@ an UNWIND-PROTECT, then change back to the current directory."
54 54
          (setf (getcwd) ,old)))))
55 55
 
56 56
 (defun exit ()
57
+  ;; KLUDGE: Just call UIOP for now. Don't want users updating scripts.
57 58
   "Exit the lisp system returning a 0 status code."
58
-  #+sbcl (sb-ext:exit)
59
-  #+ccl (ccl:quit)
60
-  #+ecl (si:quit)
61
-  #+cmucl (ext:quit)
62
-  #+clisp (ext:quit)
63
-  #-(or sbcl ccl ecl cmucl clisp) (error "Not implemented yet."))
59
+  (uiop:quit))
64 60
 
65 61
 (defun fmt (fmt-str args)
66 62
   "A convenient FORMAT interface for string building."