summaryrefslogtreecommitdiffstats
path: root/roles/prerec/templates/talk
diff options
context:
space:
mode:
Diffstat (limited to 'roles/prerec/templates/talk')
-rwxr-xr-xroles/prerec/templates/talk21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/prerec/templates/talk b/roles/prerec/templates/talk
new file mode 100755
index 0000000..0531cda
--- /dev/null
+++ b/roles/prerec/templates/talk
@@ -0,0 +1,21 @@
+#!/bin/bash
+# {{ ansible_managed }}
+# How to use: talk slug from-status-regexp to-status
+# or talk slug to-status
+
+SLUG="$1"
+FROM_STATUS="$2"
+TO_STATUS="$3"
+if [ "x$TO_STATUS" == "x" ]; then
+ FROM_STATUS=.
+ TO_STATUS="$2"
+fi
+cd {{ emacsconf_private_dir }}
+#echo "Pulling conf.org..."
+#git pull
+echo "Updating status..."
+emacsclient --eval "(emacsconf-with-todo-hooks (emacsconf-update-talk-status \"$SLUG\" \"$FROM_STATUS\" \"$TO_STATUS\"))" -a emacs
+#echo "Committing and pushing in the background"
+#git commit -m "Update task status for $SLUG from $FROM_STATUS to $TO_STATUS" conf.org
+#git push &
+