SEQ(7) Miscellaneous Information Manual SEQ(7)

seqprocess sequential blocks

module:seq
seq:n
seq-1{
	# automate block
}
# ...
seq-n{
	# automate block
}

The seq module processes a series of blocks sequentially. It creates a chain of n entries, where n is specified by the “seq” variable. For each entry in the chain, the module invokes automate(1) to process the corresponding block.

The blocks are processed in order from “seq-1” to “seq-n”.

The directory path containing automate's config files and data.

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

To build a file in steps:

#!/bin/automate -s default,c
hello.c{
	output:$3
	module:seq
	seq:3
	seq-1{
		command:scripts/head.sh $1
	}
	seq-2{
		command:scripts/body.sh $1
	}
	seq-3{
		command:scripts/tail.sh $1
	}
}

automate(1), venus-conf(5)

October 8, 2024 EltaninOS