man-pages/man1/dh_compress.1.html
2021-03-31 01:06:50 +01:00

128 lines
3.4 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DH_COMPRESS</TITLE>
</HEAD><BODY>
<H1>DH_COMPRESS</H1>
Section: Debhelper (1)<BR>Updated: 2020-03-27<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
dh_compress - compress files and fix symlinks in package build directories
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>dh_compress</B> [<I>debhelper options</I>] [<B>-X</B><I>item</I>] [<B>-A</B>] [<I>file</I> ...]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>dh_compress</B> is a debhelper program that is responsible for compressing
the files in package build directories, and makes sure that any symlinks
that pointed to the files before they were compressed are updated to point
to the new files.
<P>
By default, <B>dh_compress</B> compresses files that Debian policy mandates should
be compressed, namely all files in <I>usr/share/info</I>, <I>usr/share/man</I>,
files in <I>usr/share/doc</I> that are larger than 4k in size,
(except the <I>copyright</I> file, <I>.html</I> and other web files, image files, and files
that appear to be already compressed based on their extensions), and all
<I>changelog</I> files. Plus <FONT SIZE="-1">PCF</FONT> fonts underneath <I>usr/share/fonts/X11/</I>
<A NAME="lbAE">&nbsp;</A>
<H2>FILES</H2>
<DL COMPACT>
<DT id="1">debian/<I>package</I>.compress<DD>
These files are deprecated.
<P>
If this file exists, the default files are not compressed. Instead, the
file is ran as a shell script, and all filenames that the shell script
outputs will be compressed. The shell script will be run from inside the
package build directory. Note though that using <B>-X</B> is a much better idea in
general; you should only use a <I>debian/package.compress</I> file if you really
need to.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="2"><B>-X</B><I>item</I>, <B>--exclude=</B><I>item</I><DD>
Exclude files that contain <I>item</I> anywhere in their filename from being
compressed. For example, <B>-X.tiff</B> will exclude <FONT SIZE="-1">TIFF</FONT> files from compression.
You may use this option multiple times to build up a list of things to
exclude.
<DT id="3"><B>-A</B>, <B>--all</B><DD>
Compress all files specified by command line parameters in <FONT SIZE="-1">ALL</FONT> packages
acted on.
<DT id="4"><I>file</I> ...<DD>
Add these files to the list of files to compress.
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>CONFORMS TO</H2>
Debian policy, version 3.0
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?7+debhelper">debhelper</A></B>(7)
<P>
This program is a part of debhelper.
<A NAME="lbAI">&nbsp;</A>
<H2>AUTHOR</H2>
Joey Hess &lt;<A HREF="mailto:joeyh@debian.org">joeyh@debian.org</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="8"><A HREF="#lbAE">FILES</A><DD>
<DT id="9"><A HREF="#lbAF">OPTIONS</A><DD>
<DT id="10"><A HREF="#lbAG">CONFORMS TO</A><DD>
<DT id="11"><A HREF="#lbAH">SEE ALSO</A><DD>
<DT id="12"><A HREF="#lbAI">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:10 GMT, March 31, 2021
</BODY>
</HTML>