summaryrefslogtreecommitdiff
path: root/readme-to-ascii.el
blob: 2979d88d92e706fa780ebc7c4a77e5b4ac1a3829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(defvar org-location "~/src/emacs/org-mode/lisp")

(when (and org-location (file-exists-p org-location))
  (add-to-list 'load-path org-location)
  (require 'org))

(let ((readme-file "bog-readme.org")
      exported-file
      (final-file "README"))
  (with-current-buffer (find-file-noselect readme-file)
    (setq exported-file (org-ascii-export-to-ascii)))
  (rename-file exported-file final-file t))