From bf485dd43386305177a2ba3ea1a5ee7e164984c6 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 15 Jun 2021 16:45:49 +0530 Subject: doc: Move documentation from texinfo to skribilo. * doc/ccwl.texi: Delete file. * ccwl/skribilo.scm, doc/ccwl.skb, doc/capture-output-file-with-parameter-reference.out, doc/capture-output-file-with-parameter-reference.scm, doc/capture-output-file.out, doc/capture-output-file.scm, doc/capture-stdout.out, doc/capture-stdout.scm, doc/checksum.out, doc/checksum.scm, doc/decompress-compile-run.out, doc/decompress-compile-run.scm, doc/hello-world.out, doc/hello-world.scm, doc/hello.tar.out: New files. * configure.ac: Check for skribilo. * Makefile.am: Unregister doc/ccwl.texi. Add documentation build rules. * guix.scm (ccwl)[native-inputs]: Replace texinfo with skribilo. * .gitignore: Add doc/skribilo. Remove doc/version.texi, doc/*.html, doc/*.info. --- doc/decompress-compile-run.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/decompress-compile-run.scm (limited to 'doc/decompress-compile-run.scm') diff --git a/doc/decompress-compile-run.scm b/doc/decompress-compile-run.scm new file mode 100644 index 0000000..437fb41 --- /dev/null +++ b/doc/decompress-compile-run.scm @@ -0,0 +1,18 @@ +(define decompress + (command #:run "gzip" "--stdout" "--decompress" (input 'compressed #:type 'File) + #:outputs (output 'decompressed #:type 'stdout))) + +(define compile + (command #:run "gcc" "-x" "c" (input 'source #:type 'File) + #:outputs (output 'executable + #:type 'File + #:binding '((glob . "a.out"))))) + +(define run + (command #:run (input 'executable) + #:outputs (output 'stdout #:type 'stdout))) + +(workflow ((compressed-source #:type File)) + (pipe (decompress #:compressed compressed-source) + (compile #:source decompressed) + (run #:executable executable))) -- cgit v1.2.3