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