]> git.donarmstrong.com Git - debhelper.git/commitdiff
r595: * dh_clean: Clean the *.debhelper temp files on a per-package basis, in
authorjoey <joey>
Mon, 7 Jul 2003 00:30:40 +0000 (00:30 +0000)
committerjoey <joey>
Mon, 7 Jul 2003 00:30:40 +0000 (00:30 +0000)
     case dh_clean is run on one package at a time.
   * Removed the debian/substvars removal code entirely. It was only there to
     deal with half-built trees built with debhelper << 3.0.30

debhelper.pod
debian/changelog
dh_clean
dh_installdeb
dh_makeshlibs

index 56eb531af204f620109bba8c68fe16792b513050..3fa2e2d161ef2cb36ca37a336ff40de2228bdb5b 100644 (file)
@@ -47,10 +47,12 @@ be used to configure the behavior of specific debhelper commands. These
 files are typically named debian/package.foo (where "package" of course,
 is replaced with the package that is being acted on).
 
-For example,
-dh_installdocs uses files named debian/package.docs to list the documentation
-files it will install. See the man pages of individual commands for details
-about the names and formats of the files they use.
+For example, dh_installdocs uses files named debian/package.docs to list
+the documentation files it will install. See the man pages of individual
+commands for details about the names and formats of the files they use.
+Generally, these files will list files to act on, one file per line. Some
+programs in debhelper use pairs of files and destinations or slightly more
+complicated formats.
 
 Note that if a package is the first (or only) binary package listed in
 debian/control, debhelper will use debian/foo if no debian/package.foo
index d424ff918f82ebeda0f514f13f15856feadf54fb..def6b24ed7fd88f20e36c3373863a1ec8c88dc17 100644 (file)
@@ -1,3 +1,12 @@
+debhelper (4.1.52) unstable; urgency=low
+
+  * dh_clean: Clean the *.debhelper temp files on a per-package basis, in
+    case dh_clean is run on one package at a time.
+  * Removed the debian/substvars removal code entirely. It was only there to
+    deal with half-built trees built with debhelper << 3.0.30
+
+ -- Joey Hess <joeyh@debian.org>  Sun,  6 Jul 2003 20:28:27 -0400
+
 debhelper (4.1.51) unstable; urgency=low
 
   * dh_installchangelogs: Install debian/NEWS as NEWS.Debian, even for native
index a3d8c7bec3f21b7991598a4850f5055f6b9ff114..d4c5943a102437fe211c828d45b297a31d8530d0 100755 (executable)
--- a/dh_clean
+++ b/dh_clean
@@ -17,9 +17,9 @@ B<dh_clean> [S<I<debhelper options>>] [B<-k>] [B<-d>] [B<-X>I<item>] [S<I<file .
 
 dh_clean is a debhelper program that is responsible for cleaning up after a
 package is built. It removes the package build directories, and removes some
-other files, such as debian/substvars, debian/files, and any detritus left
-behind by other debhelper commands (debian/*.debhelper). It also removes
-common files that should not appear in a debian diff:
+other files including debian/files, and any detritus left behind by other
+debhelper commands. It also removes common files that should not appear in a
+debian diff:
   #*# *~ DEADJOE *.orig *.rej *.SUMS TAGS core .deps/* *.P
 
 =head1 OPTIONS
@@ -64,6 +64,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        if (! $dh{D_FLAG}) {
                doit("rm","-f","debian/${ext}substvars")
                        unless excludefile("debian/${ext}substvars");
+               
+               # These are all debhelper temp files, and so it is safe to 
+               # wildcard them.
+               complex_doit("rm -f debian/$ext*.debhelper");
        }
        
        doit ("rm","-rf",$tmp)
@@ -80,15 +84,6 @@ if (! $dh{D_FLAG}) {
                        unless excludefile("debian/files");
        }
 
-       # These are all debhelper temp files, and so it is safe to 
-       # wildcard them.
-       complex_doit("rm -f debian/*.debhelper");
-
-       # Remove some files that were left around by older versions of
-       # debhelper.
-       doit("rm","-f","debian/substvars")
-               unless excludefile("debian/substvars");
-       
        # See if some files that would normally be deleted are excluded.
        my $find_options='';
        if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
index 7c7f8d180b48efd2b07d97893b0da1526ddd82fb..9527ff2e293459e6765351d6abd282ba90c05f3d 100755 (executable)
@@ -29,11 +29,11 @@ the DEBIAN directory:
   package.conffiles
 
 The postinst, preinst, postrm, and prerm are handled specially: If a
-corresponding file named debian/script.debhelper exists, the contents of that
-file are merged into the script as follows: If the script exists, then
-anywhere in it that "#DEBHELPER#" appears, the text of the .debhelper file is
-inserted. If the script does not exist, then a script is generated from
-the .debhelper file. The .debhelper files are created by other debhelper
+corresponding file named debian/package.script.debhelper exists, the contents
+of that file are merged into the script as follows: If the script exists,
+then anywhere in it that "#DEBHELPER#" appears, the text of the .debhelper
+file is inserted. If the script does not exist, then a script is generated
+from the .debhelper file. The .debhelper files are created by other debhelper
 programs, such as L<dh_installmenu(1)>, and are shell script fragments.
 
 In V3 compatibility mode and higher, all files in the etc/ directory in a
index 7a4e7b1dc856ba2ea61168b399e1aa97ef8033e8..de9f782796f6511440f7544f90225d3e48a07ee6 100755 (executable)
@@ -57,8 +57,8 @@ Do not modify postinst/postrm scripts.
 
 =item B<-X>I<item>, B<--exclude=>I<item>
 
-Exclude files that contain "item" anywhere in their filename from
-being treated as shared libraries.
+Exclude files that contain "item" anywhere in their filename or directory 
+from being treated as shared libraries.
 
 =back