2021-11-29 16:17:34 +01:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2021-11-30 09:35:15 +01:00
|
|
|
# See: https://gist.github.com/sindresorhus/7996717
|
|
|
|
|
|
|
|
job="$(git diff-tree -r --name-only --no-commit-id HEAD^ HEAD -- README.org)"
|
2021-11-29 16:17:34 +01:00
|
|
|
|
|
|
|
if [ -n "$job" ]; then
|
2021-11-30 09:35:15 +01:00
|
|
|
emacs --batch \
|
|
|
|
--eval "(add-to-list 'safe-local-eval-forms '(apply 'my-org-eval-blocks-named '(\"emacs-lisp-setup\")))" \
|
|
|
|
--eval "(require 'org)" \
|
|
|
|
--eval "(org-babel-tangle-file \"$job\")"
|
2021-11-29 16:17:34 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# mode: shell-script
|
|
|
|
# sh-indentation: 2
|
|
|
|
# sh-basic-offset: 2
|
|
|
|
# End:
|