Browse Source

Fix previous commit.

Bastien Guerry 5 years ago
parent
commit
5f9177ad3a
2 changed files with 8 additions and 7 deletions
  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.
 lispdir= $(prefix)/emacs/site-lisp/org
 
-# Where local data files go.
-datadir = $(prefix)/emacs/etc/org
-
 # Where info files go.
 infodir = $(prefix)/info
 
@@ -91,7 +88,7 @@ MAKE_ORG_INSTALL = $(BATCHL) \
 MAKE_ORG_VERSION = $(BATCHL) \
 	  --eval '(load "org-compat.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
 ELCDIR	= $(BATCHL) \

+ 7 - 3
mk/org-fixup.el

@@ -27,7 +27,7 @@
 (require 'autoload)
 (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.
 This function is internally used by the build system and should
 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.
   Inserted by installing org-mode or when a release is made.\"
    (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)
     (write-file "org-version.el")))
 
@@ -85,7 +89,7 @@ manual install when the build system can't be used."
 	(progn
 	  (cd dirlisp)
 	  (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)
 	  (when compile (byte-recompile-directory dirlisp 0 force)))
       (cd origin))))