2011-05-16 11:17:57 +00:00
|
|
|
ORG_PATH = /usr/share/emacs/site-lisp/org-mode
|
2011-05-16 13:25:30 +00:00
|
|
|
INIT = (setq load-path (cons \"/usr/share/emacs/site-lisp/org-mode\" load-path) \
|
|
|
|
make-backup-files nil \
|
|
|
|
org-export-author-info nil \
|
|
|
|
org-export-creator-info nil \
|
|
|
|
org-export-html-validation-link nil \
|
|
|
|
org-babel-tangle-pad-newline nil \
|
|
|
|
org-src-preserve-indentation t) \
|
|
|
|
(require 'org-install)
|
2011-05-16 11:17:57 +00:00
|
|
|
|
2011-05-16 18:13:10 +00:00
|
|
|
ORG = benchmark.org results.org
|
|
|
|
|
2011-05-16 11:17:57 +00:00
|
|
|
wiki2org:
|
|
|
|
perl -pe '\
|
|
|
|
s/^= (.*) =\s*$$/#+TITLE: $$1\n/; \
|
|
|
|
s/^== (.*) ==\s*$$/* $$1/; \
|
|
|
|
s/^=== (.*) ===\s*$$/** $$1/; \
|
|
|
|
s/^{{{/#+BEGIN_SRC/; \
|
|
|
|
s/^}}}/#+END_SRC/ \
|
|
|
|
' benchmark.wiki >benchmark.org
|
|
|
|
|
2011-05-16 18:13:10 +00:00
|
|
|
packets:
|
2011-05-16 11:17:57 +00:00
|
|
|
emacs -Q --batch --eval \
|
|
|
|
"(progn ${INIT} (find-file \"benchmark.org\") \
|
|
|
|
(org-babel-tangle) (kill-buffer))"
|
|
|
|
perl -pi -e 'print "\n" unless $$p; $$p=1' packets/user_profile.psyc
|
|
|
|
|
|
|
|
html:
|
2011-05-16 18:13:10 +00:00
|
|
|
for f in ${ORG}; do \
|
|
|
|
emacs -Q --batch --eval \
|
|
|
|
"(progn ${INIT} (find-file \"$$f\") \
|
|
|
|
(org-export-as-html-batch) (kill-buffer))"; \
|
|
|
|
done
|
2011-05-16 11:17:57 +00:00
|
|
|
|
|
|
|
pdf:
|
2011-05-16 18:13:10 +00:00
|
|
|
for f in ${ORG}; do \
|
|
|
|
emacs -Q --batch --eval \
|
|
|
|
"(progn ${INIT} (find-file \"$@.org\") \
|
|
|
|
(org-export-as-pdf org-export-headline-levels) (kill-buffer))"
|