This is a dependency that is not in the Debian repository, but it is easy to build it.
Requires cmake and libusb-1.0-0-dev, from the Debian repository.
Get the source code:
| git clean -df | |
| mkdir _posts _drafts | |
| find ./_orgsource -name "*.org" | while read -r filename; do | |
| sed -e 's/\(\#\+BEGIN\_SRC \)\(.*\)/\#\+BEGIN_HTML\ | |
| {\% highlight \2 \%}/' -e 's/\#\+END\_SRC/{\% endhighlight \%}\ | |
| \#\+END_HTML/' $filename > $filename.temp.org | |
| newfilename=$(echo $filename | sed -e "s/\(\.\/\)\(\_orgsource\/\)\(.*\)\(.org\)/\1\3\.html/g") | |
| pandoc -t html -o $newfilename $filename.temp.org | |
| rm $filename.temp.org | |
| done |
| ;; org-mobile-sync | |
| (defun org-mobile-clean-pre-push() | |
| (with-temp-buffer | |
| (shell-command "rm ~/mobileorg/*" t))) | |
| (defun org-mobile-rclone-sync-post-push() | |
| (with-temp-buffer | |
| (shell-command "rclone sync ~/mobileorg Dropbox:Apps/MobileOrg --exclude \.DS_Store" t))) | |
| (defun org-mobile-rclone-sync-pre-pull() | |
| (with-temp-buffer | |
| (shell-command "rm ~/mobileorg/*" t) |