aboutsummaryrefslogtreecommitdiff
path: root/robot/spanish-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'robot/spanish-run.sh')
-rwxr-xr-xrobot/spanish-run.sh44
1 files changed, 44 insertions, 0 deletions
diff --git a/robot/spanish-run.sh b/robot/spanish-run.sh
new file mode 100755
index 0000000..c90e31a
--- /dev/null
+++ b/robot/spanish-run.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+set -e
+
+this_dir="$(dirname "$0")"
+source $this_dir/robot.sh
+
+
+card_no=15
+small_sleep=0.1
+
+
+function run_drill {
+ ## Org-drill should be running at this point, so give three answers
+ ## with a score of file
+ sleep_big
+
+ for i in `seq 1 $card_no`;
+ do
+ echo Answer: $i
+ send_answer
+ done
+
+ ## Press any key to continue
+ echo press any key to continue
+ retn
+ sleep_small
+
+ echo Save file
+ key y
+}
+
+launch_emacs $this_dir/spanish-run.el
+
+{
+ sleep 1
+ find_bot
+
+ ## Run once with default options
+ run_drill
+
+
+ wait_emacs
+} || cat robot/failure.txt