blob: a876561b8f3d861dc956ea495f474d89d9064950 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#!/bin/bash
set -e
function run_drill {
## Org-drill should be running at this point, so give three answers
## with a score of file
sleep_small
echo answer one
send_answer
echo answer two
send_answer
echo answer three
send_answer
## Press any key to continue
echo press any key to continue
retn
echo Save file
key y
}
this_dir="$(dirname "$0")"
source $this_dir/robot.sh
launch_emacs $this_dir/explainer-run.el
{
find_bot
## Run once with default options
run_drill
## Run once with presentation-prompt-with-typing
run_drill
wait_emacs
} || cat robot/failure.txt
|