From c44ca7447b9b4f53f568e4d55614a5848717fd78 Mon Sep 17 00:00:00 2001 From: Phillip Lord Date: Sat, 29 Jun 2019 17:49:33 +0100 Subject: Document explainer --- robot/explainer-run.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 robot/explainer-run.sh (limited to 'robot/explainer-run.sh') diff --git a/robot/explainer-run.sh b/robot/explainer-run.sh new file mode 100755 index 0000000..a876561 --- /dev/null +++ b/robot/explainer-run.sh @@ -0,0 +1,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 -- cgit v1.2.3