From 66ae0b351fe2709d583073496f3ff6812989cdd2 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Fri, 2 Dec 2022 08:18:56 -0500 Subject: prerec updates --- roles/prerec/templates/update-task-status.sh | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 roles/prerec/templates/update-task-status.sh (limited to 'roles/prerec/templates/update-task-status.sh') diff --git a/roles/prerec/templates/update-task-status.sh b/roles/prerec/templates/update-task-status.sh deleted file mode 100755 index b3f59d2..0000000 --- a/roles/prerec/templates/update-task-status.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# {{ ansible_managed }} -# How to use: update-task-status.sh slug from-status-regexp to-status -# or update-task-status.sh 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 & - -- cgit v1.2.3