[libcarp-datum-perl] 07/13: Simplify debian/rules a bit.
gregor herrmann
gregoa at debian.org
Wed Jun 17 16:21:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libcarp-datum-perl.
commit 0fdea0e229f7f66009fd24ed8ca81eb299c6b20c
Author: gregor herrmann <gregoa at debian.org>
Date: Wed Jun 17 18:09:40 2015 +0200
Simplify debian/rules a bit.
---
debian/clean | 1 +
debian/rules | 14 ++++++--------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..2b45030
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+scripts/datum_strip
diff --git a/debian/rules b/debian/rules
index 2c34fa8..e28c59d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,16 +5,14 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
+
%:
dh $@
override_dh_auto_install:
dh_auto_install
- mkdir -p $(CURDIR)/debian/libcarp-datum-perl/usr/share/man/man1
- rm -f $(CURDIR)/debian/libcarp-datum-perl/usr/share/man/man1/datum_strip.*
- ln -sf ../man3/Carp::Datum::Strip.3pm.gz $(CURDIR)/debian/libcarp-datum-perl/usr/share/man/man1/datum_strip.1.gz
-
-override_dh_auto_clean:
- dh_auto_clean
- rm -f scripts/datum_strip
-
+ $(RM) -v $(TMP)/usr/share/man/man1/datum_strip.*
+ ln -sfv ../man3/Carp::Datum::Strip.3pm.gz $(TMP)/usr/share/man/man1/datum_strip.1p.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcarp-datum-perl.git
More information about the Pkg-perl-cvs-commits
mailing list