[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/12: doc: Typographical tweaks.
From: |
guix-commits |
Subject: |
01/12: doc: Typographical tweaks. |
Date: |
Fri, 18 Feb 2022 08:15:56 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 9724da9abc3b5719a7cd5ba107444be6b2d50f4a
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Feb 16 22:24:24 2022 +0100
doc: Typographical tweaks.
* doc/guix.texi (Build Utilities): Remove trailing #t from phases.
Use @lisp for 'wrap-program' examples.
---
doc/guix.texi | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index c8bb484d94..a4145af7fd 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9480,8 +9480,7 @@ scripts so that they refer to @code{grep} by its absolute
file name:
(substitute* (list (string-append bin "/egrep")
(string-append bin "/fgrep"))
(("^exec grep")
- (string-append "exec " bin "/grep")))
- #t))))
+ (string-append "exec " bin "/grep")))))))
@end lisp
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")
"/bin")))
(install-file "footswitch" bin)
- (install-file "scythe" bin)
- #t))))
+ (install-file "scythe" bin)))))
@end lisp
@c TODO: Add more examples.
@@ -9543,21 +9541,21 @@ couple of helpers to wrap commands.
[#:sh @var{sh}] [#:rest @var{variables}]
Make a wrapper for @var{program}. @var{variables} should look like this:
-@example
+@lisp
'(@var{variable} @var{delimiter} @var{position} @var{list-of-directories})
-@end example
+@end lisp
where @var{delimiter} is optional. @code{:} will be used if
@var{delimiter} is not given.
For example, this call:
-@example
+@lisp
(wrap-program "foo"
'("PATH" ":" = ("/gnu/.../bar/bin"))
'("CERT_PATH" suffix ("/gnu/.../baz/certs"
"/qux/certs")))
-@end example
+@end lisp
will copy @file{foo} to @file{.foo-real} and create the file @file{foo}
with the following contents:
- branch master updated (40d418b326 -> 33ce3f1c86), guix-commits, 2022/02/18
- 05/12: services: qemu-guest-agent: Fix implementation., guix-commits, 2022/02/18
- 02/12: packages: 'package-transitive-supported-systems' ignores '%current-target-system'., guix-commits, 2022/02/18
- 07/12: gnu: upower: Update to 0.99.15., guix-commits, 2022/02/18
- 06/12: gnu: upower: Make it auto-updatable., guix-commits, 2022/02/18
- 11/12: gnu: upower: Remove obsolete phase, guix-commits, 2022/02/18
- 08/12: gnu: umockdev: Use G-expressions., guix-commits, 2022/02/18
- 04/12: guix build: Warn when attempting to build an unsupported package., guix-commits, 2022/02/18
- 03/12: profiles: 'profile-derivation' rejects unsupported packages., guix-commits, 2022/02/18
- 01/12: doc: Typographical tweaks.,
guix-commits <=
- 10/12: gnu: umockdev: Reference libumockdev by absolute path., guix-commits, 2022/02/18
- 09/12: gnu: umockdev: Reference 'env' and 'sh' by absolute path., guix-commits, 2022/02/18
- 12/12: gnu: lsh: Build with optimizations., guix-commits, 2022/02/18