]> git.donarmstrong.com Git - debhelper.git/blob - dh_link.1
a3079b09a5adb5bec5b45583b6a90f5ffcbdfa10
[debhelper.git] / dh_link.1
1 .TH DH_LINK 1 "" "Debhelper Commands" "Debhelper Commands"
2 .SH NAME
3 dh_link \- create symlinks in package build directories
4 .SH SYNOPSIS
5 .B dh_link
6 .I "[debhelper options] [-A] [source destination ...]"
7 .SH "DESCRIPTION"
8 dh_link is a debhelper program that creates symlinks in package build
9 directories.
10 .P
11 dh_link accepts a list of pairs of source and destination files. The source
12 files are the already existing files that will be symlinked from. The
13 destination files are the symlinks that will be created. There
14 .B must
15 be an equal number of source and destination files specified.
16 .P
17 The list can be specified in two ways. A file named debian/package.links
18 can list pairs of files. If you use this file, you should put each pair
19 of files on its own line, and separate the files within the pair with
20 whitespace. Also, pairs of files can be specified as parameters - these
21 pairs will only be created in the package build directory of the first
22 package dh_link is told to act on. By default, this is the first binary
23 package in debian/control, but if you use -p, -i, or -a flags, it will be
24 the first package specified by those flags.
25 .P
26 Be sure you
27 .B do
28 specify the full filename to both the source and destination files (unlike
29 you would do if you were using something like
30 .BR ln (1)
31 ).
32 .P
33 dh_link will generate symlinks that comply with debian policy - absolute
34 when policy says they should be absolute, and relative links with as short a
35 path as possible. It will also create any subdirectories it needs to to put
36 the symlinks in.
37 .SH OPTIONS
38 .TP
39 .B debhelper options
40 See
41 .BR debhelper (1)
42 for a list of options common to all debhelper commands.
43 .TP
44 .B \-A, \--all
45 Create any links specified by command line parameters in ALL packages
46 acted on, not just the first.
47 .TP
48 .B source destination ...
49 Create a file named "destination" as a link to a file named "source". Do
50 this in the package build directory of the first package acted on.
51 (Or in all packages if -A is specified.)
52 .SH EXAMPLES
53 .TP
54 .B dh_link usr/share/man/man1/foo.1 usr/share/man/man1/bar.1
55 Make bar.1 be a symlink to foo.1
56 .TP
57 .B dh_link var/lib/foo usr/lib/foo usr/X11R6/man/man1/foo.1x usr/share/man/man1/bar.1
58 Make /usr/lib/foo/ be a link to /var/lib/foo/, and bar.1 be a symlink to the
59 X man page foo.1x
60 .SH ENVIRONMENT
61 See
62 .BR debhelper (1)
63 for a list of environment variables that affect all debhelper commands.
64 .SH "SEE ALSO"
65 .BR debhelper (1)
66 .SH BUGS
67 It's impossible to specify filenames with spaces or other whitespace in them
68 in debian/package.links files. This is more a historical design flaw than a
69 bug.
70 .SH "CONFORMS TO"
71 Debian policy, version 3.0.1
72 .SH AUTHOR
73 Joey Hess <joeyh@debian.org>