utils: 'wrap-program' produces only one wrapper file.
authorLudovic Courtès <ludo@gnu.org>
Wed, 7 Sep 2016 21:59:02 +0000 (23:59 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 7 Sep 2016 21:59:02 +0000 (23:59 +0200)
commitb14a8385095f6672960fb8378c6578acf1ebbf8a
tree9af192e11499f1195d07cec842f740a8c0f3ade2
parent5c838ec9cd121e7e80587648e3d76347932436c0
utils: 'wrap-program' produces only one wrapper file.

* guix/build/utils.scm (wrap-program)[wrapper-file-name]
[next-wrapper-number, wrapper-target]: Remove.
[wrapped-file, already-wrapped?]: New variables.
[last-line]: New procedure.
Use it to append to PROG when a wrapper already exists.
* tests/build-utils.scm ("wrap-program, one input, multiple calls"):
Adjust the list of files to delete.
guix/build/utils.scm
tests/build-utils.scm