diff options
author | Damien Miller <djm@mindrot.org> | 2013-01-20 22:58:51 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-01-20 22:58:51 +1100 |
commit | dc75d1fc0488a6637779470200f2b4dca2ed6248 (patch) | |
tree | f1f06606f75eac50623a49453cbb59c1feb54a89 /regress/krl.sh | |
parent | d60b2108307dccdc596d1bf3195f6882067e2b2f (diff) |
- (djm) [regress/krl.sh] replacement for jot; most platforms lack it
Diffstat (limited to 'regress/krl.sh')
-rw-r--r-- | regress/krl.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/regress/krl.sh b/regress/krl.sh index 3ee5a9060..46a2ad3f9 100644 --- a/regress/krl.sh +++ b/regress/krl.sh | |||
@@ -33,6 +33,10 @@ serial: 799 | |||
33 | serial: 599-701 | 33 | serial: 599-701 |
34 | EOF | 34 | EOF |
35 | 35 | ||
36 | jot() { | ||
37 | awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } }" | ||
38 | } | ||
39 | |||
36 | # A specification that revokes some certificated by key ID. | 40 | # A specification that revokes some certificated by key ID. |
37 | touch $OBJ/revoked-keyid | 41 | touch $OBJ/revoked-keyid |
38 | for n in 1 2 3 4 10 15 30 50 `jot 500 300` 999 1000 1001 1002; do | 42 | for n in 1 2 3 4 10 15 30 50 `jot 500 300` 999 1000 1001 1002; do |