repo.or.cz
/
lyx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tufte layout files:
[lyx.git]
/
development
/
keystest
/
doNtimes.sh
blob
0ea176d7cbb8a4d2e5d96ec56e9d912686aeb718
1
#!/bin/bash
2
KT
=
`dirname
$0
`
3
N
=
$1
4
shift
5
6
echo
doNtimes .
$N
.
"$@"
7
8
i
=
0
9
for
intr
in
`yes | head -n
$N
`
10
do
11
i
=
$
((
$i
+
1
))
12
echo
'TRY#'
$i
13
if
!
"$@"
14
then
15
echo
TRIES_REQUIRED
:
$i
16
exit
1
17
fi
18
done
19
20
echo
DONE
$N
TIMES