.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "DH_LINK 1" .TH DH_LINK 1 "2019-02-23" "12.1.1" "Debhelper" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" dh_link \- create symlinks in package build directories .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBdh_link\fR [\fIdebhelper options\fR] [\fB\-A\fR] [\fB\-X\fR\fIitem\fR] [\fIsource destination\fR ...] .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBdh_link\fR is a debhelper program that creates symlinks in package build directories. .PP \&\fBdh_link\fR accepts a list of pairs of source and destination files. The source files are the already existing files that will be symlinked from (called \fBtarget\fR by \fBln\fR\|(1)). The destination files are the symlinks that will be created (called \fBlink name\fR by \&\fBln\fR\|(1)). There \fBmust\fR be an equal number of source and destination files specified. .PP Be sure you \fBdo\fR specify the absolute path to both the source and destination files (unlike you would do if you were using something like \fBln\fR\|(1)). Please note that the leading slash is optional. .PP \&\fBdh_link\fR will generate symlinks that comply with Debian policy \- absolute when policy says they should be absolute, and relative links with as short a path as possible. It will also create any subdirectories it needs to put the symlinks in. .PP Any pre-existing destination files will be replaced with symlinks. .PP \&\fBdh_link\fR also scans the package build tree for existing symlinks which do not conform to Debian policy, and corrects them (v4 or later). .SH "FILES" .IX Header "FILES" .IP "debian/\fIpackage\fR.links" 4 .IX Item "debian/package.links" Lists pairs of source and destination files to be symlinked. Each pair should be put on its own line, with the source and destination separated by whitespace. .Sp In each pair the source file (called \fBtarget\fR by \fBln\fR\|(1)) comes first and is followed by the destination file (called \fBlink name\fR by \&\fBln\fR\|(1)). Thus the pairs of source and destination files in each line are given in the same order as they would be given to \fBln\fR\|(1). .Sp In contrast to \fBln\fR\|(1), source and destination paths must be absolute (the leading slash is optional). .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-A\fR, \fB\-\-all\fR" 4 .IX Item "-A, --all" Create any links specified by command line parameters in \s-1ALL\s0 packages acted on, not just the first. .IP "\fB\-X\fR\fIitem\fR, \fB\-\-exclude=\fR\fIitem\fR" 4 .IX Item "-Xitem, --exclude=item" Exclude symlinks that contain \fIitem\fR anywhere in their filename from being corrected to comply with Debian policy. .IP "\fIsource destination\fR ..." 4 .IX Item "source destination ..." Create a file named \fIdestination\fR as a link to a file named \fIsource\fR. Do this in the package build directory of the first package acted on. (Or in all packages if \fB\-A\fR is specified.) .SH "EXAMPLES" .IX Header "EXAMPLES" .Vb 1 \& dh_link usr/share/man/man1/foo.1 usr/share/man/man1/bar.1 .Ve .PP Make \fIbar.1\fR be a symlink to \fIfoo.1\fR .PP .Vb 2 \& dh_link var/lib/foo usr/lib/foo \e \& usr/share/man/man1/foo.1 usr/share/man/man1/bar.1 .Ve .PP Make \fI/usr/lib/foo/\fR be a link to \fI/var/lib/foo/\fR, and \fIbar.1\fR be a symlink to the \fIfoo.1\fR .PP .Vb 2 \& var/lib/foo usr/lib/foo \& usr/share/man/man1/foo.1 usr/share/man/man1/bar.1 .Ve .PP Same as above but as content for a debian/\fIpackage\fR.links file. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdebhelper\fR\|(7) .PP This program is a part of debhelper. .SH "AUTHOR" .IX Header "AUTHOR" Joey Hess