1 ;;; org-fixup.el - to make life easier for folks without GNU make
4 ;; Keywords: outlines, hypermedia, calendar, wp
5 ;; Homepage: http://orgmode.org
7 ;; This file is not yet part of GNU Emacs.
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation; either version 3, or (at your option)
14 ;; GNU Emacs is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;; GNU General Public License for more details.
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
21 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
23 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
31 (defun org-make-org-version (org-release org-git-version odt-dir
)
32 (find-file "org-version.el")
34 (insert ";;; org-version.el --- autogenerated file, do not edit\n;;\n;;; Code:\n")
35 (insert ";;;\#\#\#autoload\n")
36 (insert "(defconst org-release \"" org-release
"\"\n")
37 (insert " \"The release version of org-mode.\n")
38 (insert " Inserted by installing org-mode or when a release is made.\")\n")
39 (insert ";;;\#\#\#autoload\n")
40 (insert "(defconst org-git-version \"" org-git-version
"\"\n")
41 (insert " \"The Git version of org-mode.\n")
42 (insert " Inserted by installing org-mode or when a release is made.\")\n")
43 (insert ";;;\#\#\#autoload\n")
44 (insert "(defconst org-odt-data-dir \"" odt-dir
"\"\n")
45 (insert " \"The location of ODT styles.\")\n")
46 (insert "\f\n;; Local Variables:\n;; version-control: never\n")
47 (insert ";; no-byte-compile: t\n")
48 (insert ";; coding: utf-8\n;; End:\n;;; org-version.el ends here\n")
51 (defun org-make-org-install (absfile)
54 (insert ";;; org-install.el --- autogenerated file, do not edit\n;;\n;;; Code:\n")
55 (let ((files (directory-files (file-name-directory absfile
) 'full
"^[^.#~]*\\.el$")))
56 (mapc (lambda (f) (generate-file-autoloads f
)) files
))
57 (insert "\f\n(provide 'org-install)\n")
58 (insert "\f\n;; Local Variables:\n;; version-control: never\n")
59 (insert ";; no-byte-compile: t\n;; no-update-autoloads: t\n")
60 (insert ";; coding: utf-8\n;; End:\n;;; org-install.el ends here\n")
64 (message "might as well do something, but not now")
74 ;;; org-fixup.el ends here