Rebuilding a file if files have changed
Posted
by
Todd Strauch
on Server Fault
See other posts from Server Fault
or by Todd Strauch
Published on 2012-06-21T13:44:36Z
Indexed on
2012/06/21
15:17 UTC
Read the original article
Hit count: 153
I'm having a hard time wrapping my head around this. It seems trivial, but I'm not getting it.
I have two files. If either of those two files changes, I want to rebuild one of them.
Essentially:
if file a changes or file b changes
then file {"a":
content => template('a.erb', 'b.erb'),
}
I know I can audit a file for change, I just don't know how to include that within a conditional. Can anyone point me in the right direction?
© Server Fault or respective owner