diff options
Diffstat (limited to '')
-rw-r--r-- | roles/prerec/tasks/main.yml | 1 | ||||
-rwxr-xr-x | roles/prerec/templates/publish-backstage-index.sh | 3 | ||||
-rwxr-xr-x | roles/prerec/templates/update-task-status.sh | 2 | ||||
-rwxr-xr-x | roles/prerec/templates/upload.sh | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/roles/prerec/tasks/main.yml b/roles/prerec/tasks/main.yml index 5241531..c635693 100644 --- a/roles/prerec/tasks/main.yml +++ b/roles/prerec/tasks/main.yml @@ -26,3 +26,4 @@ - process-prerec.sh - update-task-status.sh - upload.sh + - publish-backstage-index.sh diff --git a/roles/prerec/templates/publish-backstage-index.sh b/roles/prerec/templates/publish-backstage-index.sh new file mode 100755 index 0000000..96b27e7 --- /dev/null +++ b/roles/prerec/templates/publish-backstage-index.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# {{ ansible_managed }} +emacsclient -a emacs --eval "(emacsconf-publish-backstage-index)" diff --git a/roles/prerec/templates/update-task-status.sh b/roles/prerec/templates/update-task-status.sh index 18b7c1b..c9ac142 100755 --- a/roles/prerec/templates/update-task-status.sh +++ b/roles/prerec/templates/update-task-status.sh @@ -5,6 +5,6 @@ FROM_STATUS="$2" TO_STATUS="$3" cd ~/emacsconf-2022-private git pull -emacsclient --eval "(progn (emacsconf-update-talk-status \"$SLUG\" \"$FROM_STATUS\" \"$TO_STATUS\") (emacsconf-with-talk-heading \"$SLUG\" (emacsconf-cache-video-data (emacsconf-get-talk-info-for-subtree)) (save-buffer)))" +emacsclient -a emacs --eval "(progn (emacsconf-update-talk-status \"$SLUG\" \"$FROM_STATUS\" \"$TO_STATUS\") (emacsconf-with-talk-heading \"$SLUG\" (emacsconf-cache-video-data (emacsconf-get-talk-info-for-subtree)) (save-buffer)))" git commit -m "Update task status for $SLUG" conf.org git push diff --git a/roles/prerec/templates/upload.sh b/roles/prerec/templates/upload.sh index f723d29..f3dc9c5 100755 --- a/roles/prerec/templates/upload.sh +++ b/roles/prerec/templates/upload.sh @@ -2,5 +2,5 @@ # {{ ansible_managed }} scp $* orga@media.emacsconf.org:~/backstage -emacsclient --eval "(emacsconf-publish-backstage-index)" +/data/emacsconf/{{ emacsconf_year }}/scripts/publish-backstage-index.sh rsync -avze ssh orga@media.emacsconf.org:~/backstage/ /data/emacsconf/cache/ |