From 4f515685057b48f9e8a0f4771312492377ac2843 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 7 Apr 2007 04:03:37 +0000 Subject: [PATCH] Fix syntax error (quoting problem). Rewrite hereis documents to be single Scheme expressions so that an error prevents any subsequent expressions from being evaluated. --- v7/src/etc/c-boot-compiler.sh | 50 ++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/v7/src/etc/c-boot-compiler.sh b/v7/src/etc/c-boot-compiler.sh index afc503417..b52b9ece6 100755 --- a/v7/src/etc/c-boot-compiler.sh +++ b/v7/src/etc/c-boot-compiler.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: c-boot-compiler.sh,v 1.1 2007/04/04 05:08:19 riastradh Exp $ +# $Id: c-boot-compiler.sh,v 1.2 2007/04/07 04:03:37 cph Exp $ # # Copyright 2007 Massachusetts Institute of Technology # @@ -36,16 +36,17 @@ fi # loads them independently.) ${SCHEME_COMPILER} <package '(CROSS-REFERENCE))) - (load "make")))) -(with-working-directory-pathname "sf" - (lambda () - (load "sf.sf") - (load "sf.cbf"))) +(begin + (with-working-directory-pathname "cref" + (lambda () + (load "cref.sf") + (load "cref.cbf") + (if (not (name->package '(CROSS-REFERENCE))) + (load "make")))) + (with-working-directory-pathname "sf" + (lambda () + (load "sf.sf") + (load "sf.cbf")))) EOF # Step 2: Load CREF and SF, and syntax the compiler configured with @@ -53,20 +54,20 @@ EOF # (There *must* be a better way to write this...) -LOAD_SF_CREF=`cat <