1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh # When ctime is manipulated, the target should be rebuilt. :>source chmod a-x source redo-ifchange target <target read timestamp_before sleep 1 chmod a+x source redo-ifchange target <target read timestamp_after test ${timestamp_after} -gt ${timestamp_before}