HEREDOC(7) Miscellaneous Information Manual HEREDOC(7)

heredocwrite content

module:heredoc
heredoc{
	[content]
}

The heredoc module reads the “heredoc” variable content and writes it to the automate(1) output.

The heredoc utility exits 0 on success, and >0 if an error occurs.

To create a hello world:

#!/bin/automate -s default,c
program:hello
hello.c{
	output:$3
	module:heredoc
	heredoc{
		#include <stdio.h>
		int
		main(void) {
			puts("Hello, World!");
			return 0;
		}
	}
}

automate(1), venus-conf(5)

October 8, 2024 EltaninOS