mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
81dea0164c
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
27 lines
289 B
Bash
Executable File
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
|
|
|