AUTOMATE(1) | General Commands Manual | AUTOMATE(1) |
automate
— A
declarative frontend for redo
automate |
[-s sets]
file redo-arg-1
redo-arg-2 redo-arg-3 |
automate
utility processes a rule from the specified
file and acts as a venus-conf(1)
frontend for redo(1). It must be invoked through
redo(1), with the file encoded in
venus-conf(5) format.
The automate
utility performs the
following steps:
The rule is chosen using redo-arg-1 and the redo-whichdo(1) search pattern.
The following key entries have special meaning:
Any other key not used by a module is ignored. The value entries are interpreted as dependencies.
The following variables have special meaning:
The modules are executables files that processes its invoking block and performs specific operations.
The sets are files containing rules.
-s
setsAUTOMATE_ETC_DIR
The automate
utility exits 0 on
success, and >0 if an error occurs.
Create a file named “default.do”:
#!/usr/bin/automate program:hello hello.c{ output:$3 module:heredoc heredoc{ #include <stdio.h> int main(void) { puts("Hello, World!"); return 0; } } }
Build the program:
$ redo hello
October 8, 2024 | EltaninOS |