From b9c72bebe424e05e678c267f0c801ea83a226c9d Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Wed, 4 Jan 2012 22:53:02 +0100 Subject: [PATCH] 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. --- default.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/default.mk b/default.mk index cdbcb499b..24d48e48a 100644 --- a/default.mk +++ b/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 -- 2.11.4.GIT