Pārlūkot izejas kodu

make sure org-release is defined in batch mode

	default.mk: make sure org-release is defined when starting emacs
	in batch mode.  Add a suffix to see if this definition leaks into
	the installed version someplace.  When running from an installed
	version, this definition is pulled in from org-install.el.
Achim Gratz 13 gadi atpakaļ
vecāks
revīzija
b9c72bebe4
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      default.mk

+ 4 - 2
default.mk

@@ -22,19 +22,21 @@ infodir = $(prefix)/info
 ##----------------------------------------------------------------------
 
 # Using emacs in batch mode.
-BATCH   = $(EMACS) -batch -Q -L .
+BATCH   = $(EMACS) -batch -Q \
+	  -L . \
+	  --eval '(defconst org-release "$(ORGVERSION)-Make")' \
 
 # run tests
 BTEST   = $(EMACS) -batch \
 	  $(BTEST_EXTRA) \
 	  -L lisp/ \
+	  --eval '(defconst org-release "$(ORGVERSION)-Test")' \
 	  -l testing/org-test.el \
 	  -eval "(setq org-confirm-babel-evaluate nil)" \
 	  -f org-test-run-batch-tests
 
 # How to byte-compile the whole source directory
 ELCDIR  = $(BATCH) \
-	  --eval '(defconst org-release "$(ORGVERSION)")' \
 	  --eval '(batch-byte-recompile-directory 0)'
 
 # How to byte-compile a single source file