Commit ca1322ab authored by Kevin Rosenberg's avatar Kevin Rosenberg

add run-shell-command for openmcl

parent 9a8584d2
;;; This is asdf: Another System Definition Facility. $Revision: 1.45 $ ;;; This is asdf: Another System Definition Facility. $Revision: 1.46 $
;;; ;;;
;;; Feedback, bug reports, and patches are all welcome: please mail to ;;; Feedback, bug reports, and patches are all welcome: please mail to
;;; <cclan-list@lists.sf.net>. But note first that the canonical ;;; <cclan-list@lists.sf.net>. But note first that the canonical
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
(in-package #:asdf) (in-package #:asdf)
;;; parse the cvs revision into something that might be vaguely useful. ;;; parse the cvs revision into something that might be vaguely useful.
(defvar *asdf-revision* (let* ((v "$Revision: 1.45 $") (defvar *asdf-revision* (let* ((v "$Revision: 1.46 $")
(colon (position #\: v)) (colon (position #\: v))
(dot (position #\. v))) (dot (position #\. v)))
(and v colon dot (and v colon dot
...@@ -919,5 +919,15 @@ output to *trace-output*. Returns the shell's exit code." ...@@ -919,5 +919,15 @@ output to *trace-output*. Returns the shell's exit code."
;; doesn't seem to be documented ;; doesn't seem to be documented
(ext:run-shell-command command :output :terminal :wait t))) (ext:run-shell-command command :output :terminal :wait t)))
#+openmcl
(defun run-shell-command (control-string &rest args)
"Interpolate ARGS into CONTROL-STRING as if by FORMAT, and
synchronously execute the result using a Bourne-compatible shell, with
output to *trace-output*. Returns the shell's exit code."
(let ((command (apply #'format nil control-string args)))
(format *trace-output* "; $ ~A~%" command)
(ccl:run-program "/bin/sh" (list "-c" command)
:input nil :output *trace-output* :wait t)))
(pushnew :asdf *features*) (pushnew :asdf *features*)
cl-asdf (1.46) unstable; urgency=low
* New upstream version, adds run-shell-command for openmcl
-- Kevin M. Rosenberg <kmr@debian.org> Fri, 20 Sep 2002 10:11:48 -0600
cl-asdf (1.45) unstable; urgency=low cl-asdf (1.45) unstable; urgency=low
* Changes to improve clisp support * Changes to improve clisp support
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment