[clojure] 02/05: debian/rules: remove vestigial SOURCE and VER computation
Elana Hashman
ehashman-guest at moszumanska.debian.org
Mon Oct 2 02:49:46 UTC 2017
This is an automated email from the git hooks/post-receive script.
ehashman-guest pushed a commit to branch master
in repository clojure.
commit fb4d3466e9d721f342f61784c9244899f25b5e2f
Author: Rob Browning <rlb at defaultvalue.org>
Date: Sun Oct 1 11:13:37 2017 -0500
debian/rules: remove vestigial SOURCE and VER computation
---
debian/rules | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/debian/rules b/debian/rules
index eafee63..aff53a3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,7 @@
#!/usr/bin/make -f
SHELL := /bin/bash
-
-SOURCE = $(shell dpkg-parsechangelog | grep ^Source | sed "s/Source: //")
-VER = $(shell echo $(SOURCE) | sed s/^clojure//)
-VER = 1.8
-
+VER := 1.8
JAVA_HOME = /usr/lib/jvm/default-java
%:
@@ -21,18 +17,18 @@ override_dh_auto_build:
cat debian/footer.html >> changes.html
override_dh_install:
- $(JAVA_HOME)/bin/java -cp clojure.jar clojure.main debian/gencompletions.clj > debian/$(SOURCE)/etc/rlwrap/clojure$(VER)
+ $(JAVA_HOME)/bin/java -cp clojure.jar clojure.main debian/gencompletions.clj > debian/clojure/etc/rlwrap/clojure$(VER)
dh_install
- sed -i 's/@VER@/$(VER)/g' debian/$(SOURCE)/usr/bin/*
- file-rename 's/$$/$(VER)/' debian/$(SOURCE)/usr/bin/*
- mh_installpom -plib$(SOURCE)-java --no-parent pom.xml
- mh_installjar -plib$(SOURCE)-java -l pom.xml clojure.jar /usr/share/java/clojure-$(VER).jar
+ sed -i 's/@VER@/$(VER)/g' debian/clojure/usr/bin/*
+ file-rename 's/$$/$(VER)/' debian/clojure/usr/bin/*
+ mh_installpom -plibclojure-java --no-parent pom.xml
+ mh_installjar -plibclojure-java -l pom.xml clojure.jar /usr/share/java/clojure-$(VER).jar
override_dh_installman:
dh_installman
- file-rename 's/\.(.)$$/$(VER).$$1/' debian/$(SOURCE)/usr/share/man/*/*
+ file-rename 's/\.(.)$$/$(VER).$$1/' debian/clojure/usr/share/man/*/*
override_dh_installchangelogs:
dh_installchangelogs -- changes.html
--
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