snow on CSAN
This commit is contained in:
parent
dc5cdfdbe8
commit
1dc953ec8f
|
@ -214,8 +214,9 @@ a valid CSAN URL now.
|
|||
"22. Please remember to call 'o conf commit' to make the config permanent!
|
||||
|
||||
|
||||
cpan shell -- CSAN exploration and modules installation (v1.9402)
|
||||
Enter 'h' for help.")
|
||||
cpan shell -- CSAN exploration and modules installation (v0.1)
|
||||
Enter 'h' for help.
|
||||
Commands : get filename.tar.gz")
|
||||
|
||||
(define questions (make-table))
|
||||
(table-set! questions 1 CSAN-shell-droptext-1)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
(define-interface CSAN-interface
|
||||
(export
|
||||
CSAN-question~))
|
||||
CSAN-question~
|
||||
CSAN-shell-spawn
|
||||
CSAN-dir))
|
||||
|
||||
(define-structure CSAN
|
||||
CSAN-interface
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
;;; load.scm - a scheme CSAN
|
||||
;;; load.scm - a scheme CSAN - Snow utility
|
||||
;;;
|
||||
;;; Copyright (c) 2012 Johan Ceuppens
|
||||
;;;
|
||||
|
@ -27,4 +27,9 @@
|
|||
;;; THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
(load "snow-repository.scm")
|
||||
(display (snow-repository "./test.scm" '()))
|
||||
|
||||
(let* ((url (snow-repository "./test.scm" '()))
|
||||
(snow-mirror-url url))
|
||||
(display (question? 22))
|
||||
(CSAN-shell-spawn CSAN-dir snow-mirror-url))
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
(export
|
||||
parse-for snow-repository))
|
||||
|
||||
(define-structure snow
|
||||
(define-structure snow
|
||||
snow-interface
|
||||
(open scheme)
|
||||
(files snow))
|
||||
(open scheme CSAN)
|
||||
(files snow-repository))
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
(set! word ""))
|
||||
((eq? (string-ref s i) #\newline)
|
||||
#t));;(string-set! s i ""
|
||||
|
||||
|
||||
(set! word (string-append word (string (string-ref s i))))))))
|
||||
|
||||
(define (read-in-file-contents filename)
|
||||
|
@ -55,7 +55,7 @@
|
|||
((eq? (string-ref s i) #\")
|
||||
(string-append s (string #\"))
|
||||
i)
|
||||
|
||||
|
||||
(set! word (string-append word (string (string-ref s i)))))
|
||||
(error "parse-for-url : malformed url string"))))
|
||||
|
||||
|
@ -72,7 +72,7 @@
|
|||
(set! index4 (parse-for contents "url" index))
|
||||
(set! urlstr (parse-for-url contents index4))
|
||||
|
||||
(set! db (append db (cons "url" urlstr)))
|
||||
(set! db (append db (list (list "url" urlstr))))
|
||||
db))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue