quote source-file so it doesn't break when it has spaces in. tidy issues.
This commit is contained in:
parent
64aa954d32
commit
db64dfb68f
5 changed files with 10 additions and 12 deletions
|
@ -1,3 +0,0 @@
|
||||||
A plain text file issue
|
|
||||||
|
|
||||||
with a short description
|
|
|
@ -1,3 +0,0 @@
|
||||||
Another plain text file issue with no extension
|
|
||||||
|
|
||||||
and a short description
|
|
16
main.scm
16
main.scm
|
@ -190,7 +190,7 @@
|
||||||
(not (equal?
|
(not (equal?
|
||||||
"-\t-\t"
|
"-\t-\t"
|
||||||
(call-with-input-pipe
|
(call-with-input-pipe
|
||||||
(string-append "git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 --numstat HEAD -- " source-file)
|
(string-append "git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 --numstat HEAD -- " (qs source-file))
|
||||||
(cute read-line <> 4)))))
|
(cute read-line <> 4)))))
|
||||||
|
|
||||||
(define (git-repository->paths-list)
|
(define (git-repository->paths-list)
|
||||||
|
@ -198,7 +198,9 @@
|
||||||
|
|
||||||
(define (git-file->string source-file)
|
(define (git-file->string source-file)
|
||||||
(->
|
(->
|
||||||
(format "git show HEAD:~a" source-file)
|
source-file
|
||||||
|
(qs)
|
||||||
|
((flip format) "git show HEAD:~a")
|
||||||
(call-with-input-pipe read-lines)
|
(call-with-input-pipe read-lines)
|
||||||
(string-intersperse "\n")))
|
(string-intersperse "\n")))
|
||||||
|
|
||||||
|
@ -281,9 +283,11 @@
|
||||||
(string-prefix? "ISSUES/" source-file)
|
(string-prefix? "ISSUES/" source-file)
|
||||||
`(li (a (@ (href ,source-file))
|
`(li (a (@ (href ,source-file))
|
||||||
,(->
|
,(->
|
||||||
source-file
|
(string-append "HEAD:" source-file)
|
||||||
((flip format) "git show HEAD:~a")
|
(qs)
|
||||||
|
((flip format) "git show ~a")
|
||||||
(call-with-input-pipe read-line)
|
(call-with-input-pipe read-line)
|
||||||
|
((lambda (x) (if (eof-object? x) (pathname-strip-directory source-file) x)))
|
||||||
(string-trim (string->char-set "# ")))))))
|
(string-trim (string->char-set "# ")))))))
|
||||||
source-files-list)))))
|
source-files-list)))))
|
||||||
|
|
||||||
|
@ -394,8 +398,8 @@
|
||||||
(case (string->symbol (or (pathname-extension source-file) ""))
|
(case (string->symbol (or (pathname-extension source-file) ""))
|
||||||
((jpg jpeg png gif webp webm svg apng avif svgz ico)
|
((jpg jpeg png gif webp webm svg apng avif svgz ico)
|
||||||
(system (format "git show HEAD:~a > ~a"
|
(system (format "git show HEAD:~a > ~a"
|
||||||
source-file
|
(qs source-file)
|
||||||
(make-pathname html-path source-file))))))
|
(make-pathname html-path (qs source-file)))))))
|
||||||
source-files-list)
|
source-files-list)
|
||||||
;; if README.md, README, or README.txt exists, regenerate it as index.html.
|
;; if README.md, README, or README.txt exists, regenerate it as index.html.
|
||||||
;; otherwise regenerate files.html as index.html.
|
;; otherwise regenerate files.html as index.html.
|
||||||
|
|
Loading…
Reference in a new issue