From: Matt Birkholz Date: Tue, 2 Oct 2018 01:21:26 +0000 (-0700) Subject: edwin: Fix autogen.sh (sources.sh) to work with 9.2. X-Git-Tag: mit-scheme-pucked-gtk-screen-0.5 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=fe9db82c75a59b14d527a34be6d1270c835f0010;p=mit-scheme.git edwin: Fix autogen.sh (sources.sh) to work with 9.2. --- diff --git a/src/edwin/sources.sh b/src/edwin/sources.sh index 20f982b6a..aa2c720b2 100755 --- a/src/edwin/sources.sh +++ b/src/edwin/sources.sh @@ -62,7 +62,10 @@ ${MIT_SCHEME_EXE} --batch-mode -- $1 <<\EOF (define (my-write-line . strings) (apply my-write strings) (newline)) - (let ((command (car (command-line-arguments))) + (let ((command (car (if (environment-bound? system-global-environment + 'command-line-arguments) + (command-line-arguments) + (command-line)))) (files (filenames))) (cond ((string=? command "scm") (for-each (lambda (name) (my-write " "name))