diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2014-09-19 15:33:44 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2014-09-19 15:33:44 +0200 |
commit | 36e8a6f36a461a930305ba1f3713601bdf24d2b3 (patch) | |
tree | 8db999626a4a5779e6b3af34eb55053cf65665ef | |
parent | 5479857e0bdbbd57bd7e48575f3769af7d4102a0 (diff) |
+ a→b,a→c,b→c
-rw-r--r-- | a→b,a→c,b→c/a.do | 4 | ||||
-rw-r--r-- | a→b,a→c,b→c/all.do | 18 | ||||
-rw-r--r-- | a→b,a→c,b→c/b.do | 2 | ||||
-rw-r--r-- | a→b,a→c,b→c/c.do | 2 |
4 files changed, 26 insertions, 0 deletions
diff --git a/a→b,a→c,b→c/a.do b/a→b,a→c,b→c/a.do new file mode 100644 index 0000000..9899a19 --- /dev/null +++ b/a→b,a→c,b→c/a.do @@ -0,0 +1,4 @@ +#!/bin/sh +redo-ifchange b c +sleep 1 +date +%s diff --git a/a→b,a→c,b→c/all.do b/a→b,a→c,b→c/all.do new file mode 100644 index 0000000..13532e2 --- /dev/null +++ b/a→b,a→c,b→c/all.do @@ -0,0 +1,18 @@ +#!/bin/sh +redo-ifchange a + +read a <a +read b <b +read c <c + +if [ $a -lt $b ]; then + echo 'FAIL: a < b' >&2 +else + echo 'PASS: a > b' >&2 +fi + +if [ $a -lt $c ]; then + echo 'FAIL: a < c' >&2 +else + echo 'PASS: a > c' >&2 +fi diff --git a/a→b,a→c,b→c/b.do b/a→b,a→c,b→c/b.do new file mode 100644 index 0000000..e3dfe3b --- /dev/null +++ b/a→b,a→c,b→c/b.do @@ -0,0 +1,2 @@ +#!/bin/sh +date +%s diff --git a/a→b,a→c,b→c/c.do b/a→b,a→c,b→c/c.do new file mode 100644 index 0000000..e3dfe3b --- /dev/null +++ b/a→b,a→c,b→c/c.do @@ -0,0 +1,2 @@ +#!/bin/sh +date +%s |