[med-svn] [metastudent] 01/02: do not parse d/changelog

Andreas Tille tille at debian.org
Wed Nov 15 18:36:47 UTC 2017


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

tille pushed a commit to branch master
in repository metastudent.

commit 1915bc1a5a527f73d11f12ecc2aa7127595c9eb1
Author: Andreas Tille <tille at debian.org>
Date:   Wed Nov 15 19:35:11 2017 +0100

    do not parse d/changelog
---
 debian/changelog | 1 +
 debian/rules     | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f78ba4f..859c0c2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ metastudent (2.0.1-5) UNRELEASED; urgency=medium
   * Moved packaging from SVN to Git
   * debhelper 10
   * Standards-Version: 4.1.1
+  * d/rules: do not parse d/changelog
 
  -- Andreas Tille <tille at debian.org>  Wed, 15 Nov 2017 19:27:24 +0100
 
diff --git a/debian/rules b/debian/rules
index e5f4329..0f2e6f1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 JAVA_HOME=/usr/lib/jvm/default-java
-DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+include /usr/share/dpkg/default.mk
 
 %:
 	dh $@ --with javahelper --with python2
@@ -17,11 +17,11 @@ override_dh_auto_clean:
 override_dh_auto_install:
 	dh_auto_install
 	find debian/metastudent -regex ".*/knn_weighted\|.*/CafaWrapper1\.pl\|.*/CafaWrapper2\.pl\|.*/CafaWrapper3\.pl\|.*/CafaWrapper3_new\.pl\|.*/exercise3\.pl\|.*/treehandler\.pl\|.*/validate\.pl" -exec chmod +x {} \;
-	mv *.jar $(CURDIR)/debian/$(DEBPKGNAME)/usr/share/metastudent/
+	mv *.jar $(CURDIR)/debian/$(DEB_SOURCE)/usr/share/metastudent/
 	# configuration files should reside in /etc
-	mkdir -p $(CURDIR)/debian/$(DEBPKGNAME)/etc
+	mkdir -p $(CURDIR)/debian/$(DEB_SOURCE)/etc
 	# accordint to manpage <sysconfdir>/metastudentrc overrides /usr/share/metastudent/metastudentrc.default
-	cp -a $(CURDIR)/debian/$(DEBPKGNAME)/usr/share/metastudent/metastudentrc.default $(CURDIR)/debian/$(DEBPKGNAME)/etc/metastudentrc
+	cp -a $(CURDIR)/debian/$(DEB_SOURCE)/usr/share/metastudent/metastudentrc.default $(CURDIR)/debian/$(DEB_SOURCE)/etc/metastudentrc
 
 # lkajan 20140106:
 # The jars in d/metastudent.jlibs are for use by this package only, and should not end up in /usr/share/java.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/metastudent.git



More information about the debian-med-commit mailing list