diff options
author | Arun Isaac | 2021-06-15 16:45:49 +0530 |
---|---|---|
committer | Arun Isaac | 2021-06-15 17:53:25 +0530 |
commit | bf485dd43386305177a2ba3ea1a5ee7e164984c6 (patch) | |
tree | acbd8beaa7b298fd185601308382969f8aa77682 /doc/decompress-compile-run.scm | |
parent | 6bc13f2df1395fe6b5c197dca8b24a959d02e5c1 (diff) | |
download | ccwl-bf485dd43386305177a2ba3ea1a5ee7e164984c6.tar.gz ccwl-bf485dd43386305177a2ba3ea1a5ee7e164984c6.tar.lz ccwl-bf485dd43386305177a2ba3ea1a5ee7e164984c6.zip |
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.
Diffstat (limited to 'doc/decompress-compile-run.scm')
-rw-r--r-- | doc/decompress-compile-run.scm | 18 |
1 files changed, 18 insertions, 0 deletions
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))) |