14 lines
292 B
Bash
Executable File
14 lines
292 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
job="$(git diff-tree -r --name-only --no-commit-id HEAD^ HEAD README.org)"
|
|
|
|
if [ -n "$job" ]; then
|
|
emacs --batch --eval "(require 'org)" --eval "(org-babel-tangle-file \"$job\")"
|
|
fi
|
|
|
|
# Local Variables:
|
|
# mode: shell-script
|
|
# sh-indentation: 2
|
|
# sh-basic-offset: 2
|
|
# End:
|