3 dh_compress \- compress files and fix symlinks in package build directories
6 .I "[-v] [-a] [-i] [-ppackage]"
8 dh_compress is a debhelper program that is responsible for compressing
9 the files in package build directories, and makes sure that any symlinks
10 that pointed to the files before they were compressed are updated to point
13 By default, dh_compress compresses files that debian policy mandates should
14 be compressed, namely all files in usr/info, usr/man, usr/X11R6/man, and
15 all files in usr/doc that are larger than 4k in size, except
16 the copyright file, .html files and .gif files.
18 If a debian/compress file exits, however, it will be ran as a shell script,
19 and all filenames that the shell script outputs will be compressed instead
20 of the default files. Note that the shell script will be run from inside the
21 package build directory.
23 Here is a sample debian/compress file that causes dh_compress to compress
24 the same files as it would by default. This is a good starting point for
25 customization of what files are compressed:
27 find usr/info usr/man usr/X11*/man -type f
28 find usr/doc -type f -size +4k \\
29 ! -name "*.htm*" ! -name "*.gif" \\
34 Verbose mode; show all commands that modify the package build directory.
37 Compress files for all architecture dependent packages.
40 Compress files for all architecture independent packages.
43 Compress files for the package named "package".
50 arguments are cumulative. If none are specified, then all packages listed in
51 the control file will have their files compressed.
53 The debian/compress file applies to the first binary package listed in your
54 control file. For the other packages, you can make files named
55 debian/package.compress, where "package" is the name of the package they
62 .BR /usr/doc/debhelper/README
64 Filenames with spaces in them may not properly be compressed.
66 Debian policy, version 2.3.0.0
68 Joey Hess <joeyh@master.debian.org>