added --dump flag

This commit is contained in:
interp 2002-08-28 15:42:15 +00:00
parent a2aed3280e
commit d3bf493454
1 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,7 @@ exec scsh -lm packages.scm -dm -o http-test -e main -s "$0" "$@"
httpd-basic-handlers
httpd-file-directory-handlers
cgi-server
seval-handler
let-opt
scsh
scheme)
@ -82,6 +83,12 @@ exec scsh -lm packages.scm -dm -o http-test -e main -s "$0" "$@"
((string=? (car options) "--help")
(display (usage))
(exit 0))
((string=? (car options) "--dump")
(let ((image-name (if (null? (cdr options))
"server"
(cadr options))))
(dump-scsh-program main image-name))
(exit 0))
(else
(unknown-option-error (car options)))))))))
@ -115,6 +122,7 @@ exec scsh -lm packages.scm -dm -o http-test -e main -s "$0" "$@"
(with-path-handler
(alist-path-dispatcher
(list (cons "h" (home-dir-handler "public_html"))
(cons "seval" seval-handler)
(cons "cgi-bin" (cgi-handler cgi-bin-dir)))
(rooted-file-or-directory-handler htdocs-dir)))))))))
))