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-devops-0.9 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=e41a721cdf092ea7c17b4c43f690d6d322d9db4d;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))