lyx_mirror/development/keystest/doNtimes.sh
Pavel Sanda 81dea0164c New keytest version from John McCabe-Dansted
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg156659.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32740 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-02 21:46:11 +00:00

27 lines
289 B
Bash
Executable File

#!/bin/bash
KT=`dirname "$0"`
. "$KT/shared_functions.sh"
N=$1
shift
echo doNtimes .$N. "$@"
i=0
for intr in `yes | head -n$N`
do
i=$(($i+1))
echo 'TRY#' $i
if ! "$@"
then
echo TRIES_REQUIRED: $i
kill_all_children $$
exit 1
fi
done
kill_all_children $$
echo DONE $N TIMES