[clojure] 02/09: override_dh_install: export JAVA_HOME and PATH for java

Elana Hashman ehashman-guest at moszumanska.debian.org
Wed Feb 21 22:56:50 UTC 2018


This is an automated email from the git hooks/post-receive script.

ehashman-guest pushed a commit to branch 1.8.x
in repository clojure.

commit 6178dc1df5c4ca3b911257627a12f94471d54d0b
Author: Rob Browning <rlb at defaultvalue.org>
Date:   Sat Feb 3 13:42:03 2018 -0600

    override_dh_install: export JAVA_HOME and PATH for java
---
 debian/rules | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index d4a0217..2a488a4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,10 @@ override_dh_auto_build:
 	dh_auto_build -- jar
 
 override_dh_install:
-	$(JAVA_HOME)/bin/java -cp clojure.jar clojure.main debian/gencompletions.clj > debian/$(SOURCE)/etc/rlwrap/clojure$(VER)
+	export JAVA_HOME="$(JAVA_HOME)"; \
+	export PATH="$(JAVA_HOME)/bin:$${PATH}"; \
+	java -cp clojure.jar clojure.main debian/gencompletions.clj \
+	  > debian/$(SOURCE)/etc/rlwrap/clojure$(VER)
 
 	dh_install
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/clojure.git



More information about the pkg-java-commits mailing list