Przeglądaj źródła

Merge branch 'maint'

Bastien Guerry 12 lat temu
rodzic
commit
30235e6773
2 zmienionych plików z 8 dodań i 7 usunięć
  1. 1 4
      mk/default.mk
  2. 7 3
      mk/org-fixup.el

+ 1 - 4
mk/default.mk

@@ -13,9 +13,6 @@ prefix	= /usr/share
 # Where local lisp files go.
 # Where local lisp files go.
 lispdir= $(prefix)/emacs/site-lisp/org
 lispdir= $(prefix)/emacs/site-lisp/org
 
 
-# Where local data files go.
-datadir = $(prefix)/emacs/etc/org
-
 # Where info files go.
 # Where info files go.
 infodir = $(prefix)/info
 infodir = $(prefix)/info
 
 
@@ -91,7 +88,7 @@ MAKE_ORG_INSTALL = $(BATCHL) \
 MAKE_ORG_VERSION = $(BATCHL) \
 MAKE_ORG_VERSION = $(BATCHL) \
 	  --eval '(load "org-compat.el")' \
 	  --eval '(load "org-compat.el")' \
 	  --eval '(load "../mk/org-fixup.el")' \
 	  --eval '(load "../mk/org-fixup.el")' \
-	  --eval '(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)" "$(datadir)")'
+	  --eval '(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)")'
 
 
 # How to byte-compile the whole source directory
 # How to byte-compile the whole source directory
 ELCDIR	= $(BATCHL) \
 ELCDIR	= $(BATCHL) \

+ 7 - 3
mk/org-fixup.el

@@ -27,7 +27,7 @@
 (require 'autoload)
 (require 'autoload)
 (require 'org-compat "org-compat.el")
 (require 'org-compat "org-compat.el")
 
 
-(defun org-make-org-version (org-release org-git-version odt-dir)
+(defun org-make-org-version (org-release org-git-version)
   "Make the file org-version.el in the current directory.
   "Make the file org-version.el in the current directory.
 This function is internally used by the build system and should
 This function is internally used by the build system and should
 be used by foreign build systems or installers to produce this
 be used by foreign build systems or installers to produce this
@@ -50,7 +50,11 @@ the Git work tree)."
   \"The Git version of org-mode.
   \"The Git version of org-mode.
   Inserted by installing org-mode or when a release is made.\"
   Inserted by installing org-mode or when a release is made.\"
    (let ((org-git-version \"" org-git-version "\"))
    (let ((org-git-version \"" org-git-version "\"))
-     org-git-version))")
+     org-git-version))
+\f\n\(provide 'org-version\)
+\f\n;; Local Variables:\n;; version-control: never
+;; no-byte-compile: t
+;; coding: utf-8\n;; End:\n;;; org-version.el ends here\n")
     (toggle-read-only 0)
     (toggle-read-only 0)
     (write-file "org-version.el")))
     (write-file "org-version.el")))
 
 
@@ -85,7 +89,7 @@ manual install when the build system can't be used."
 	(progn
 	(progn
 	  (cd dirlisp)
 	  (cd dirlisp)
 	  (org-fixup)
 	  (org-fixup)
-	  (org-make-org-version (org-release) (org-git-version) dirodt)
+	  (org-make-org-version (org-release) (org-git-version))
 	  (org-make-org-loaddefs)
 	  (org-make-org-loaddefs)
 	  (when compile (byte-recompile-directory dirlisp 0 force)))
 	  (when compile (byte-recompile-directory dirlisp 0 force)))
       (cd origin))))
       (cd origin))))