summaryrefslogtreecommitdiff
path: root/mk/org-fixup.el
diff options
context:
space:
mode:
Diffstat (limited to 'mk/org-fixup.el')
-rw-r--r--mk/org-fixup.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/mk/org-fixup.el b/mk/org-fixup.el
index 80439a9..aa7ff09 100644
--- a/mk/org-fixup.el
+++ b/mk/org-fixup.el
@@ -52,7 +52,7 @@ the Git work tree)."
(let ((org-git-version \"" org-git-version "\"))
org-git-version))
;;;\#\#\#autoload
-\(defconst org-odt-data-dir \"" odt-dir "\"
+\(defvar org-odt-data-dir \"" odt-dir "\"
\"The location of ODT styles.\")
\f\n\(provide 'org-version\)
\f\n;; Local Variables:\n;; version-control: never
@@ -61,26 +61,27 @@ the Git work tree)."
(toggle-read-only 0)
(write-file "org-version.el")))
-(defun org-make-org-install ()
- "Make the file org-install.el in the current directory.
+(defun org-make-org-loaddefs ()
+ "Make the file org-loaddefs.el in the current directory.
This function is internally used by the build system and should
be used by foreign build systems or installers to produce this
file in the installation directory of org-mode. Org will not
work correctly if this file is not up-to-date."
(with-temp-buffer
- (set-visited-file-name "org-install.el")
- (insert ";;; org-install.el --- autogenerated file, do not edit\n;;\n;;; Code:\n")
- (let ((files (directory-files default-directory nil "^\\(org\\|ob\\)\\(-.*\\)?\\.el$")))
+ (set-visited-file-name "org-loaddefs.el")
+ (insert ";;; org-loaddefs.el --- autogenerated file, do not edit\n;;\n;;; Code:\n")
+ (let ((files (directory-files default-directory
+ nil "^\\(org\\|ob\\|ox\\)\\(-.*\\)?\\.el$")))
(mapc (lambda (f) (generate-file-autoloads f)) files))
- (insert "\f\n(provide 'org-install)\n")
+ (insert "\f\n(provide 'org-loaddefs)\n")
(insert "\f\n;; Local Variables:\n;; version-control: never\n")
(insert ";; no-byte-compile: t\n;; no-update-autoloads: t\n")
- (insert ";; coding: utf-8\n;; End:\n;;; org-install.el ends here\n")
+ (insert ";; coding: utf-8\n;; End:\n;;; org-loaddefs.el ends here\n")
(toggle-read-only 0)
(save-buffer)))
(defun org-make-autoloads (&optional compile force)
- "Make the files org-install and org-version.el in the install directory.
+ "Make the files org-loaddefs.el and org-version.el in the install directory.
Finds the install directory by looking for library \"org\".
Optionally byte-compile lisp files in the install directory or
force re-compilation. This function is provided for easier
@@ -96,7 +97,7 @@ manual install when the build system can't be used."
(cd dirlisp)
(org-fixup)
(org-make-org-version (org-release) (org-git-version) dirodt)
- (org-make-org-install)
+ (org-make-org-loaddefs)
(when compile (byte-recompile-directory dirlisp 0 force)))
(cd origin))))