Changeset 7797


Ignore:
Timestamp:
Nov 30, 2007, 3:57:50 PM (17 years ago)
Author:
Gary Byers
Message:

add UPDATE-CCL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0711/ccl/lib/compile-ccl.lisp

    r7624 r7797  
    563563          (format t "~%~%;[Parsing .ffi files again to resolve forward-referenced constants]")
    564564          (funcall f dirname target))))))
     565
     566(defun update-ccl ()
     567  (let* ((cvs-update "cvs -q update -d -P")
     568         (svn-update "svn update")
     569         (use-cvs (probe-file "ccl:\.svnrev"))
     570         (s (make-string-output-stream)))
     571    (multiple-value-bind (status exit-code)
     572        (external-process-status
     573         (run-program "/bin/sh"
     574                      (list "-c"
     575                            (format nil "cd ~a && ~a"
     576                                    (native-translated-namestring "ccl:")
     577                                    (if use-cvs cvs-update svn-update)))
     578                      :output s))
     579      (when (and (eq status :exited)
     580                 (eql exit-code 0))
     581        (format t "~&~a" (get-output-stream-string s))
     582        t))))
     583
     584                           
Note: See TracChangeset for help on using the changeset viewer.