r15360 - in /trunk/libmodule-build-perl/debian: changelog rules

ntyni at users.alioth.debian.org ntyni at users.alioth.debian.org
Thu Feb 21 21:02:09 UTC 2008


Author: ntyni
Date: Thu Feb 21 21:02:08 2008
New Revision: 15360

URL: http://svn.debian.org/wsvn/?sc=1&rev=15360
Log:
* debian/rules cleanup:
  + get the package name with dh_listpackages
  + don't ignore the return value of 'Build clean'
  + remove an unused dh_strip call

Modified:
    trunk/libmodule-build-perl/debian/changelog
    trunk/libmodule-build-perl/debian/rules

Modified: trunk/libmodule-build-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libmodule-build-perl/debian/changelog?rev=15360&op=diff
==============================================================================
--- trunk/libmodule-build-perl/debian/changelog (original)
+++ trunk/libmodule-build-perl/debian/changelog Thu Feb 21 21:02:08 2008
@@ -17,6 +17,10 @@
   * Add myself to Uploaders.
   * Reformat and update debian/copyright.
   * Upgrade to Standards-Version 3.7.3. No changes needed.
+  * debian/rules cleanup:
+    + get the package name with dh_listpackages
+    + don't ignore the return value of 'Build clean'
+    + remove an unused dh_strip call
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Dec 2007 19:14:59 +0100
 

Modified: trunk/libmodule-build-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libmodule-build-perl/debian/rules?rev=15360&op=diff
==============================================================================
--- trunk/libmodule-build-perl/debian/rules (original)
+++ trunk/libmodule-build-perl/debian/rules Thu Feb 21 21:02:08 2008
@@ -8,7 +8,7 @@
 # This is the debhelper compatibility version to use.
 #export DH_COMPAT=4
 
-PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+PACKAGE=$(dh_listpackages)
 SHAREDIR=$(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)
 
 build:
@@ -19,8 +19,7 @@
 	dh_testdir
 	dh_testroot
 
-	-./Build clean
-	rm -rf ./Build _build
+	[ ! -f Build ] || ./Build clean
 	dh_clean
 
 install:
@@ -33,9 +32,11 @@
 	./Build install destdir=$(CURDIR)/debian/$(PACKAGE)
 	install -d $(SHAREDIR)
 	install -m755 scripts/* $(SHAREDIR)
-	[ ! -d $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5
+	[ ! -d $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5
 
-binary-arch:;
+binary-arch:
+	# nothing to do
+
 binary-indep: build install
 	dh_testdir
 	dh_testroot
@@ -43,7 +44,6 @@
 	dh_installman
 	dh_installchangelogs Changes
 	dh_link
-	dh_strip
 	dh_compress
 	dh_fixperms
 	dh_installdeb
@@ -53,4 +53,4 @@
 	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install




More information about the Pkg-perl-cvs-commits mailing list