2020-06-09 09:23:29 -04:00
|
|
|
source "file" "chocolate" {
|
|
|
|
content = "chocolate"
|
|
|
|
target = "chocolate.txt"
|
|
|
|
}
|
|
|
|
|
|
|
|
source "file" "vanilla" {
|
|
|
|
content = "vanilla"
|
|
|
|
target = "vanilla.txt"
|
|
|
|
}
|
|
|
|
|
|
|
|
source "file" "cherry" {
|
|
|
|
content = "cherry"
|
|
|
|
target = "cherry.txt"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
build {
|
|
|
|
sources = [
|
|
|
|
"sources.file.chocolate",
|
|
|
|
"sources.file.vanilla",
|
|
|
|
"sources.file.cherry",
|
|
|
|
]
|
|
|
|
|
|
|
|
post-processor "shell-local" {
|
|
|
|
name = "apple"
|
|
|
|
inline = [ "echo apple > apple.txt" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
post-processor "shell-local" {
|
|
|
|
name = "peach"
|
|
|
|
inline = [ "echo apple > peach.txt" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
post-processor "shell-local" {
|
|
|
|
name = "pear"
|
|
|
|
inline = [ "echo apple > pear.txt" ]
|
|
|
|
}
|
|
|
|
|
2020-06-09 11:35:53 -04:00
|
|
|
post-processor "shell-local" {
|
|
|
|
name = "banana"
|
|
|
|
inline = [ "echo apple > banana.txt" ]
|
|
|
|
}
|
|
|
|
|
2020-06-09 09:23:29 -04:00
|
|
|
post-processor "shell-local" {
|
2020-07-02 05:07:59 -04:00
|
|
|
only = ["sources.file.vanilla"]
|
2020-06-09 09:23:29 -04:00
|
|
|
name = "tomato"
|
|
|
|
inline = [ "echo apple > tomato.txt" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
post-processor "shell-local" {
|
2020-07-02 05:07:59 -04:00
|
|
|
only = ["sources.file.chocolate"]
|
2020-06-09 09:23:29 -04:00
|
|
|
inline = [ "echo apple > unnamed.txt" ]
|
|
|
|
}
|
|
|
|
}
|