Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Antoine Martin
quickref
Commits
ba2da38d
Commit
ba2da38d
authored
Oct 18, 2017
by
Antoine Martin
Browse files
Add clean-or-create function
parent
af2db3d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
file.lisp
View file @
ba2da38d
...
...
@@ -27,3 +27,8 @@
(
namestring
(
merge-pathnames
"software/"
(
ql-dist:base-directory
(
ql-dist:dist
"quicklisp"
)))))
(
defun
clean-or-create
(
directory
)
(
if
(
probe-file
directory
)
(
clean-directory
directory
)
(
ensure-directories-exist
directory
)))
website.lisp
View file @
ba2da38d
...
...
@@ -115,6 +115,7 @@
(
format
file
"</body>~%"
))))
(
defun
log-texi-error
(
err
texi
)
(
clean-or-create
(
from-homedir
"texi-logfiles/"
))
(
let
((
filepathname
(
from-homedir
(
format
nil
"texi-logfiles/~A.log"
(
pathname-name
texi
)))))
...
...
@@ -140,10 +141,7 @@
(
log-texi-error
out
texi
))))
(
defun
build-texis
(
makeinfo-path
)
(
let
((
quickref-dir
(
from-homedir
"quickref/"
)))
(
if
(
probe-file
quickref-dir
)
(
clean-directory
quickref-dir
)
(
ensure-directories-exist
quickref-dir
)))
(
clean-or-create
(
from-homedir
"quickref/"
))
(
let
((
texis
(
get-texi-pathnames
)))
(
dolist
(
texi
texis
)
(
build-texi
texi
makeinfo-path
))))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment