summaryrefslogtreecommitdiff
path: root/ctime/all.do
blob: 7b46a6c2ed10abe436efd32c9753a17ab86cbc3e (plain)
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}