me
/
guix
Archived
1
0
Fork 0

doc: Typographical tweaks.

* doc/guix.texi (Build Utilities): Remove trailing #t from phases.
Use @lisp for 'wrap-program' examples.
Ludovic Courtès 2022-02-16 22:24:24 +01:00
parent 40d418b326
commit 9724da9abc
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 6 additions and 8 deletions

View File

@ -9480,8 +9480,7 @@ scripts so that they refer to @code{grep} by its absolute file name:
(substitute* (list (string-append bin "/egrep") (substitute* (list (string-append bin "/egrep")
(string-append bin "/fgrep")) (string-append bin "/fgrep"))
(("^exec grep") (("^exec grep")
(string-append "exec " bin "/grep"))) (string-append "exec " bin "/grep")))))))
#t))))
@end lisp @end lisp
In the example below, phases are modified in two ways: the standard In the example below, phases are modified in two ways: the standard
@ -9500,8 +9499,7 @@ executable files to be installed:
(let ((bin (string-append (assoc-ref outputs "out") (let ((bin (string-append (assoc-ref outputs "out")
"/bin"))) "/bin")))
(install-file "footswitch" bin) (install-file "footswitch" bin)
(install-file "scythe" bin) (install-file "scythe" bin)))))
#t))))
@end lisp @end lisp
@c TODO: Add more examples. @c TODO: Add more examples.
@ -9543,21 +9541,21 @@ couple of helpers to wrap commands.
[#:sh @var{sh}] [#:rest @var{variables}] [#:sh @var{sh}] [#:rest @var{variables}]
Make a wrapper for @var{program}. @var{variables} should look like this: Make a wrapper for @var{program}. @var{variables} should look like this:
@example @lisp
'(@var{variable} @var{delimiter} @var{position} @var{list-of-directories}) '(@var{variable} @var{delimiter} @var{position} @var{list-of-directories})
@end example @end lisp
where @var{delimiter} is optional. @code{:} will be used if where @var{delimiter} is optional. @code{:} will be used if
@var{delimiter} is not given. @var{delimiter} is not given.
For example, this call: For example, this call:
@example @lisp
(wrap-program "foo" (wrap-program "foo"
'("PATH" ":" = ("/gnu/.../bar/bin")) '("PATH" ":" = ("/gnu/.../bar/bin"))
'("CERT_PATH" suffix ("/gnu/.../baz/certs" '("CERT_PATH" suffix ("/gnu/.../baz/certs"
"/qux/certs"))) "/qux/certs")))
@end example @end lisp
will copy @file{foo} to @file{.foo-real} and create the file @file{foo} will copy @file{foo} to @file{.foo-real} and create the file @file{foo}
with the following contents: with the following contents: