diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-09-01 19:21:06 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-09-01 19:21:31 +0200 |
commit | 8197c978efb3fff61db42e80dd7358e7ee15bf20 (patch) | |
tree | e3fb53962dc1cf64d4fd2243474e04b8c6505e4a /release.nix | |
parent | 9dd036f35c9a825c30aecc9eb3a3f6266481cfe3 (diff) | |
download | guix-8197c978efb3fff61db42e80dd7358e7ee15bf20.tar.gz guix-8197c978efb3fff61db42e80dd7358e7ee15bf20.zip |
utils: Change `substitute*' to allow iteration over several matches.
* guix/build/utils.scm (substitute): Do not pass the OUT to PROC; use
`list-matches' instead of `regexp-exec' and pass a list of matches to
PROC. Expect PROC to return a string, and output that. Fold over
RX+PROC in order. Use `(read-line p 'concat)' to include the trailing
delimiter in LINE.
(substitute*): Produce code to iterate over the matches, and return a
string, which includes anything from the original line that's in
between matches.
* distro/base.scm (gcc-4.7, glibc): Adjust accordingly: remove use
of (ice-9 regex) and `regexp-substitute/global'; return a string.
Diffstat (limited to 'release.nix')
0 files changed, 0 insertions, 0 deletions