cleanup in lisp/Makefile, targets; create org-fixup.el, remove version definition
[org-mode.git] / UTILITIES / org-fixup.el
blob17f805716ddc47ede32784d0bff910af26460f32
1 ;;; org-fixup.el - to make life easier for folks without GNU make
2 ;;
3 ;; Author: Achim Gratz
4 ;; Keywords: outlines, hypermedia, calendar, wp
5 ;; Homepage: http://orgmode.org
6 ;;
7 ;; This file is not yet part of GNU Emacs.
8 ;;
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)
12 ;; any later version.
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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
25 ;;; Commentary:
27 (require 'find-func)
28 (require 'org-compat)
29 (require 'autoload)
31 (defun org-make-org-version (org-release org-git-version odt-dir)
32 (find-file "org-version.el")
33 (erase-buffer)
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")
49 (save-buffer))
51 (defun org-make-org-install (absfile)
52 (find-file absfile)
53 (erase-buffer)
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")
61 (save-buffer))
63 (defun org-fixup ()
64 (message "might as well do something, but not now")
67 (provide 'org-fixup)
70 ;; Local Variables:
71 ;; no-byte-compile: t
72 ;; coding: utf-8
73 ;; End:
74 ;;; org-fixup.el ends here