From 22977baf000ff18941eb78dcc300d115667e5ec8 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 17 Aug 2021 16:00:23 +0530 Subject: ccwl: Define output objects using a macro instead of a function. This allows us to do sophisticated syntax checking at an early stage, very close to the user interface. That way error messages from ccwl will make a lot more sense. * ccwl/ccwl.scm (output): Re-implement as macro. (command): Use the new macro interface. * doc/capture-output-file-with-parameter-reference.scm, doc/capture-output-file.scm, doc/capture-stdout.scm, doc/checksum.scm, doc/decompress-compile-run.scm: Use new quoting syntax for output types. --- doc/checksum.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/checksum.scm') diff --git a/doc/checksum.scm b/doc/checksum.scm index e746779..297ac14 100644 --- a/doc/checksum.scm +++ b/doc/checksum.scm @@ -1,17 +1,17 @@ (define md5sum (command #:inputs (file #:type File) #:run "md5sum" file - #:outputs (md5 #:type 'stdout))) + #:outputs (md5 #:type stdout))) (define sha1sum (command #:inputs (file #:type File) #:run "sha1sum" file - #:outputs (sha1 #:type 'stdout))) + #:outputs (sha1 #:type stdout))) (define sha256sum (command #:inputs (file #:type File) #:run "sha256sum" file - #:outputs (sha256 #:type 'stdout))) + #:outputs (sha256 #:type stdout))) (workflow ((file #:type File)) (tee (md5sum #:file file) -- cgit v1.2.3