Work on member web static file generator.

This commit is contained in:
Dominik Pantůček 2023-04-01 18:02:44 +02:00
parent b3bb37cbce
commit 52a2108b4f
5 changed files with 42 additions and 3 deletions

View file

@ -29,12 +29,16 @@
web-static
(
gen-web-static-member
gen-web-static
)
(import scheme
(chicken base)
(chicken format)
member-record)
(chicken string)
member-record
utils
configuration)
;; Generate all the files in current directory, should be wrapped in
;; something like with-current-directory.
@ -53,6 +57,22 @@
(when (not (null? lines))
(print (car lines))
(loop (cdr lines))))))
(with-output-to-file (sprintf "~A.log" nick)
(lambda ()
(let loop ((lines
(get-process-output-lines
(sprintf "git -C \"~A\" log \"~A\""
(string-translate* (*members-directory*)
'(("\"" "\\\"")))
(member-file-name mr)
))))
(when (not (null? lines))
(print (car lines))
(loop (cdr lines))))))
))
;; Generates all member files in given directory
(define (gen-web-static mb dir)
#f)
)