diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2014-09-19 15:16:28 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2014-09-19 15:20:14 +0200 |
commit | 3ebefd43ca75978846dfc02cc93844c448b67b29 (patch) | |
tree | 1d2535e2dc0b2ceabedc1949600fed0ac9d1082d /a→c,b→c |
+ a→c,b→c
Diffstat (limited to 'a→c,b→c')
-rw-r--r-- | a→c,b→c/a.do | 4 | ||||
-rw-r--r-- | a→c,b→c/all.do | 18 | ||||
-rw-r--r-- | a→c,b→c/b.do | 4 | ||||
-rw-r--r-- | a→c,b→c/c.do | 2 |
4 files changed, 28 insertions, 0 deletions
diff --git a/a→c,b→c/a.do b/a→c,b→c/a.do new file mode 100644 index 0000000..d657be5 --- /dev/null +++ b/a→c,b→c/a.do @@ -0,0 +1,4 @@ +#!/bin/sh +redo-ifchange c +sleep 1 +date +%s diff --git a/a→c,b→c/all.do b/a→c,b→c/all.do new file mode 100644 index 0000000..4e66375 --- /dev/null +++ b/a→c,b→c/all.do @@ -0,0 +1,18 @@ +#!/bin/sh +redo-ifchange a b + +read a <a +read b <b +read c <c + +if [ $a -lt $c ]; then + echo 'FAIL: a < c' >&2 +else + echo 'PASS: a > c' >&2 +fi + +if [ $b -lt $c ]; then + echo 'FAIL: b < c' >&2 +else + echo 'PASS: b > c' >&2 +fi diff --git a/a→c,b→c/b.do b/a→c,b→c/b.do new file mode 100644 index 0000000..d657be5 --- /dev/null +++ b/a→c,b→c/b.do @@ -0,0 +1,4 @@ +#!/bin/sh +redo-ifchange c +sleep 1 +date +%s diff --git a/a→c,b→c/c.do b/a→c,b→c/c.do new file mode 100644 index 0000000..e3dfe3b --- /dev/null +++ b/a→c,b→c/c.do @@ -0,0 +1,2 @@ +#!/bin/sh +date +%s |