summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2026-02-12 17:40:27 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2026-02-13 15:01:33 +0900
commit3a2c82c09a8cec3347b97807105e3caf9bfc016b (patch)
treed6ac1775ec535355b3b1d483466ccd8982715b20 /build-aux
parent875eb949e9bd2fe217b3a148260ae76f0ec37d78 (diff)
build-aux: Turn `with-input-pipe-to-string' into a procedure.
There is no reason this should be syntax. * build-aux/update-guix-package.scm (with-input-pipe-to-string): Make it a procedure. Change-Id: I96daeb40eb9202c542a7906926f2e25765d5078f
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/update-guix-package.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/update-guix-package.scm b/build-aux/update-guix-package.scm
index 383fcd00fc7..2117125f845 100644
--- a/build-aux/update-guix-package.scm
+++ b/build-aux/update-guix-package.scm
@@ -128,13 +128,13 @@ COMMIT. PROC receives the temporary directory file name as an argument."
128(define %guix-git-repo-push-url-regexp 128(define %guix-git-repo-push-url-regexp
129 "(git.guix.gnu.org|codeberg.org/guix|git@codeberg.org:guix)/guix(.git)? \\(push\\)") 129 "(git.guix.gnu.org|codeberg.org/guix|git@codeberg.org:guix)/guix(.git)? \\(push\\)")
130 130
131(define-syntax-rule (with-input-pipe-to-string prog arg ...) 131(define (with-input-pipe-to-string prog . args)
132 (let* ((input-pipe (open-pipe* OPEN_READ prog arg ...)) 132 (let* ((input-pipe (apply open-pipe* OPEN_READ prog args))
133 (output (get-string-all input-pipe)) 133 (output (get-string-all input-pipe))
134 (exit-val (status:exit-val (close-pipe input-pipe)))) 134 (exit-val (status:exit-val (close-pipe input-pipe))))
135 (unless (zero? exit-val) 135 (unless (zero? exit-val)
136 (error (format #f "Command ~s exited with non-zero exit status: ~s" 136 (error (format #f "Command ~s exited with non-zero exit status: ~s"
137 (string-join (list prog arg ...)) exit-val))) 137 (string-join (cons prog args)) exit-val)))
138 (string-trim-both output))) 138 (string-trim-both output)))
139 139
140(define (find-origin-remote) 140(define (find-origin-remote)