Browse Source

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

Brit Butler 10 years ago
parent
commit
f27172a1f7
2 changed files with 4 additions and 8 deletions
  1. 2 2
      examples/example.post-receive
  2. 2 6
      src/util.lisp

+ 2 - 2
examples/example.post-receive

25
         if [ $LISP = sbcl ]; then
25
         if [ $LISP = sbcl ]; then
26
             sbcl --eval "(ql:quickload 'coleslaw)" \
26
             sbcl --eval "(ql:quickload 'coleslaw)" \
27
                  --eval "(coleslaw:main \"$TMP_GIT_CLONE\" \"$oldrev\")" \
27
                  --eval "(coleslaw:main \"$TMP_GIT_CLONE\" \"$oldrev\")" \
28
-                 --eval "(coleslaw::exit)"
28
+                 --eval "(uiop:quit)"
29
         elif [ $LISP = ccl ]; then
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
         else
31
         else
32
             echo -e "$LISP is not a supported lisp dialect at this time. Exiting.\n"
32
             echo -e "$LISP is not a supported lisp dialect at this time. Exiting.\n"
33
             exit 1
33
             exit 1

+ 2 - 6
src/util.lisp

54
          (setf (getcwd) ,old)))))
54
          (setf (getcwd) ,old)))))
55
 
55
 
56
 (defun exit ()
56
 (defun exit ()
57
+  ;; KLUDGE: Just call UIOP for now. Don't want users updating scripts.
57
   "Exit the lisp system returning a 0 status code."
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
 (defun fmt (fmt-str args)
61
 (defun fmt (fmt-str args)
66
   "A convenient FORMAT interface for string building."
62
   "A convenient FORMAT interface for string building."