SPAN - refactor help

This commit is contained in:
erana 2012-01-19 00:42:33 +09:00
parent 4b2def9c2a
commit 38133a2915
1 changed files with 4 additions and 0 deletions

View File

@ -262,6 +262,9 @@ Enter 'h' for help.")
SPAN-build-and-cache-dir
(lambda (answer)
(let ((dir (create-directory answer)))
(run (touch (string-append dir "/help")))
(let ((out (open-output-file (string-append dir "/help"))))
(write "Commands : 'h' and 'get <filename-on-server>"))
(if (file-directory? dir)
(set! SPAN-dir answer)
(set! SPAN-build-and-cache-dir answer)
@ -357,6 +360,7 @@ Enter 'h' for help.")
SPAN-mirror-url
(lambda (answer)
(set! SPAN-mirror-url answer)
(run (touch (string-append SPAN-dir "/mirror")))
(let ((out (open-output-file (string-append SPAN-build-and-cache-dir "/mirror"))))
(write answer out))
#f)) answer)