From: Chris Hanson Date: Thu, 3 May 2007 12:49:12 +0000 (+0000) Subject: Conditionally compile .pkd files. Fix typos. X-Git-Tag: 20090517-FFI~592 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=e8248da5736e17f3b72c504e5e807b71e5a44a42;p=mit-scheme.git Conditionally compile .pkd files. Fix typos. --- diff --git a/v7/src/etc/compile.scm b/v7/src/etc/compile.scm index d8e127ae9..16e4c1052 100644 --- a/v7/src/etc/compile.scm +++ b/v7/src/etc/compile.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: compile.scm,v 1.14 2007/05/03 03:45:52 cph Exp $ +$Id: compile.scm,v 1.15 2007/05/03 12:49:12 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -88,22 +88,25 @@ USA. (define (c-compile-dir name) (compile-dir name) - (liarc-compile-pkgs name)) + (c-compile-pkgs name)) (define (c-compile-pkgs name) (with-working-directory-pathname name (lambda () - (cbf (string-append name "-unx.pkd")) - (if (not (string=? name "compiler")) ;kludge - (begin - (cbf (string-append name "-w32.pkd")) - (cbf (string-append name "-os2.pkd"))))))) + (let ((compile-pkg + (lambda (os) + (let ((name (string-append name "-" os ".pkd"))) + (if (file-exists? name) + (cbf name)))))) + (compile-pkg "unx") + (compile-pkg "w32") + (compile-pkg "os2"))))) (define (c-prepare) (fluid-let ((compiler:invoke-c-compiler? #f)) - (for-each liarc-compile-dir boot-dirs))) + (for-each c-compile-dir boot-dirs))) (define (c-compile) (fluid-let ((compiler:invoke-c-compiler? #f)) - (for-each liarc-compile-dir boot-dirs) - (for-each liarc-compile-dir non-boot-dirs))) \ No newline at end of file + (for-each c-compile-dir boot-dirs) + (for-each c-compile-dir non-boot-dirs))) \ No newline at end of file