diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2014-09-19 18:23:31 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2014-09-19 18:23:31 +0200 |
commit | 04f04dc0a0aa8a1c27a0ea6a5290f9d3270eec30 (patch) | |
tree | d47917fa4b08cdc68f1421c2ee7959917131a74c /stamp | |
parent | 872cb8adcfe7b80acb937ac163af39fbcbdb7860 (diff) |
+ stamp
Diffstat (limited to 'stamp')
-rw-r--r-- | stamp/a.do | 4 | ||||
-rw-r--r-- | stamp/all.do | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/stamp/a.do b/stamp/a.do new file mode 100644 index 0000000..1939c6b --- /dev/null +++ b/stamp/a.do @@ -0,0 +1,4 @@ +#!/bin/sh +md5sum b | redo-stamp +sleep 1 +date +%s diff --git a/stamp/all.do b/stamp/all.do new file mode 100644 index 0000000..d091f5e --- /dev/null +++ b/stamp/all.do @@ -0,0 +1,24 @@ +#!/bin/sh +echo 1 > b +redo-ifchange a +read a1 <a + +echo 2 > b +redo-ifchange a +read a2 <a + +echo 1 > b +redo-ifchange b +read a3 <a + +if [ $a1 -lt $a2 ]; then + echo 'PASS: a1 < a2' >&2 +else + echo 'FAIL: a1 > a2' >&2 +fi + +if [ $a2 -eq $a3 ]; then + echo 'PASS: a2 = a3' >&2 +else + echo 'FAIL: a2 != a3' >&2 +fi |