utils: Change 'patch-makefile-SHELL' to support ":=" assignments.
Reported by Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>. * guix/build/utils.scm (patch-makefile-SHELL): Update regexp to match ":=" assignments.
This commit is contained in:
parent
5e5deea952
commit
c809ec94d1
1 changed files with 1 additions and 1 deletions
|
|
@ -638,7 +638,7 @@ When KEEP-MTIME? is true, the atime/mtime of FILE are kept unchanged."
|
||||||
|
|
||||||
(let ((st (stat file)))
|
(let ((st (stat file)))
|
||||||
(substitute* file
|
(substitute* file
|
||||||
(("^ *SHELL[[:blank:]]*=[[:blank:]]*([[:graph:]]*/)([[:graph:]]+)(.*)$"
|
(("^ *SHELL[[:blank:]]*:?=[[:blank:]]*([[:graph:]]*/)([[:graph:]]+)(.*)$"
|
||||||
_ dir shell args)
|
_ dir shell args)
|
||||||
(let* ((old (string-append dir shell))
|
(let* ((old (string-append dir shell))
|
||||||
(new (or (find-shell shell) old)))
|
(new (or (find-shell shell) old)))
|
||||||
|
|
|
||||||
Reference in a new issue