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