* Ikarus can now be started like:
$ ikarus [-b boot-file-name] file ... [-- arg ...] files will be "load"ed sequentially after the greeting message is printes. args are available from the command-line-arguments parameter.
This commit is contained in:
parent
0ff5b0cf75
commit
d24523376d
|
@ -7,3 +7,4 @@
|
|||
./ikarus.boot.back
|
||||
.DS_Store
|
||||
../src/ikarus.boot.back
|
||||
./ikarus.boot.back
|
||||
|
|
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
|
@ -54,8 +54,20 @@
|
|||
(putprop '|#system| '*sc-expander* sysmod)
|
||||
(putprop 'scheme '*sc-expander* schmod))))
|
||||
|
||||
(begin
|
||||
(let-values ([(files args)
|
||||
(let f ([args (command-line-arguments)])
|
||||
(cond
|
||||
[(null? args) (values '() '())]
|
||||
[(string=? (car args) "--")
|
||||
(values '() (cdr args))]
|
||||
[else
|
||||
(let-values ([(f* a*) (f (cdr args))])
|
||||
(values (cons (car args) f*) a*))]))])
|
||||
(current-eval compile)
|
||||
(command-line-arguments args)
|
||||
(printf "Petite Ikarus Scheme (Build ~a)\n" (compile-time-date-string))
|
||||
(display "Copyright (c) 2006 Abdulaziz Ghuloum\n\n")
|
||||
(current-eval compile)
|
||||
(for-each load files)
|
||||
(new-cafe))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue