#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/etc/xcbfdir.scm,v 1.7 1991/05/27 17:56:12 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/etc/xcbfdir.scm,v 1.8 1992/08/22 15:00:49 jinx Exp $
-Copyright (c) 1989-91 Massachusetts Institute of Technology
+Copyright (c) 1989-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(->pathname "*.bin")))))
(define (recompile-directory dir)
- (process-directory dir compile-bin-file "com"))
+ (let ((extn
+ (if (access compiler:cross-compiling?
+ (->environment '(compiler)))
+ "moc"
+ "com")))
+ (process-directory dir compile-bin-file extn)))
(define (cross-compile-directory dir)
(process-directory dir cross-compile-bin-file "moc"))
\ No newline at end of file
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/butils.scm,v 4.5 1991/11/04 20:31:36 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/butils.scm,v 4.6 1992/08/22 15:03:25 jinx Exp $
-Copyright (c) 1988-91 Massachusetts Institute of Technology
+Copyright (c) 1988-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(lambda (input-directory #!optional output-directory force?)
(let ((output-directory
(if (default-object? output-directory) false output-directory))
- (force? (if (default-object? force?) false force?)))
+ (force? (if (default-object? force?) false force?))
+ (output-type (output-type)))
(for-each (lambda (pathname)
(if (or force?
(not (compare-file-modification-times
(directory-read input-directory)))))))
(define sf-directory
- (directory-processor "scm" "bin"
+ (directory-processor "scm"
+ (lambda () "bin")
(lambda (pathname output-directory)
(sf pathname output-directory))))
(define compile-directory
- (directory-processor "bin" "com"
+ (directory-processor "bin"
+ (lambda ()
+ (if (access compiler:cross-compiling?
+ (->environment '(compiler)))
+ "moc"
+ "com"))
(lambda (pathname output-directory)
(compile-bin-file pathname output-directory))))
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/compiler/etc/xcbfdir.scm,v 1.7 1991/05/27 17:56:12 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/compiler/etc/xcbfdir.scm,v 1.8 1992/08/22 15:00:49 jinx Exp $
-Copyright (c) 1989-91 Massachusetts Institute of Technology
+Copyright (c) 1989-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(->pathname "*.bin")))))
(define (recompile-directory dir)
- (process-directory dir compile-bin-file "com"))
+ (let ((extn
+ (if (access compiler:cross-compiling?
+ (->environment '(compiler)))
+ "moc"
+ "com")))
+ (process-directory dir compile-bin-file extn)))
(define (cross-compile-directory dir)
(process-directory dir cross-compile-bin-file "moc"))
\ No newline at end of file