r19779 - in /trunk/pperl/debian: pperl.examples pperl.manpages rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Fri May 9 14:17:34 UTC 2008


Author: gregoa
Date: Fri May  9 14:17:33 2008
New Revision: 19779

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19779
Log:
debian/rules: touch Makefile only if it exists; add manpage and examples

Added:
    trunk/pperl/debian/pperl.examples
    trunk/pperl/debian/pperl.manpages
Modified:
    trunk/pperl/debian/rules

Added: trunk/pperl/debian/pperl.examples
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/pperl/debian/pperl.examples?rev=19779&op=file
==============================================================================
--- trunk/pperl/debian/pperl.examples (added)
+++ trunk/pperl/debian/pperl.examples Fri May  9 14:17:33 2008
@@ -1,0 +1,1 @@
+examples/*

Added: trunk/pperl/debian/pperl.manpages
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/pperl/debian/pperl.manpages?rev=19779&op=file
==============================================================================
--- trunk/pperl/debian/pperl.manpages (added)
+++ trunk/pperl/debian/pperl.manpages Fri May  9 14:17:33 2008
@@ -1,0 +1,1 @@
+pperl.1p

Modified: trunk/pperl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/pperl/debian/rules?rev=19779&op=diff
==============================================================================
--- trunk/pperl/debian/rules (original)
+++ trunk/pperl/debian/rules Fri May  9 14:17:33 2008
@@ -14,8 +14,8 @@
 	touch $@
 
 clean: unpatch
-	touch Makefile	# avoid re-generating Makefile
-			# when Makefile.PL is unpatched
+	[ ! -f Makefile ] || touch Makefile	# avoid re-generating Makefile
+						# when Makefile.PL is unpatched
 	dh $@
 	dh_clean pperl.h pperl.1p
 	[ ! -d sockets ] || rm -r sockets
@@ -25,6 +25,12 @@
 
 # Build architecture-dependent files here.
 binary-arch:
+# we can add manpages and examples either this way ...
+#	dh binary-arch --before dh_installexamples
+#	dh_installexamples examples/*
+#	dh_installman pperl.1p
+#	dh binary-arch --after dh_installman
+# ... or by adding debian/pperl.{manpages,examples}
 	dh $@
 
 binary: binary-indep binary-arch




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