X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_link;h=89414121ac8ed1aaf4feac3cdf83fc8bb55f1b61;hb=e2a6d4cec4a7ee952cf6a7f250d80f1d75a38f95;hp=b035a731da1b6c9a953e120f9a4988ee80f3cddd;hpb=96d2996d353c48b62b2e6992e40d4ad2637cdc0b;p=debhelper.git diff --git a/dh_link b/dh_link index b035a73..8941412 100755 --- a/dh_link +++ b/dh_link @@ -12,14 +12,14 @@ use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS -B [S>] [B<-A>] [B<-X>I] [S>] +B [S>] [B<-A>] [B<-X>I] [S ...>] =head1 DESCRIPTION -dh_link is a debhelper program that creates symlinks in package build +B is a debhelper program that creates symlinks in package build directories. -dh_link accepts a list of pairs of source and destination files. The source +B accepts a list of pairs of source and destination files. The source files are the already existing files that will be symlinked from. The destination files are the symlinks that will be created. There B be an equal number of source and destination files specified. @@ -28,13 +28,13 @@ Be sure you B specify the full filename to both the source and destination files (unlike you would do if you were using something like L). -dh_link will generate symlinks that comply with debian policy - absolute +B 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 to put the symlinks in. -dh_link also scans the package build tree for existing symlinks which do not -conform to debian policy, and corrects them (v4 or later). +B also scans the package build tree for existing symlinks which do not +conform to Debian policy, and corrects them (v4 or later). =head1 FILES @@ -57,16 +57,16 @@ whitespace. Create any links specified by command line parameters in ALL packages acted on, not just the first. -=item B<-Xitem>, B<--exclude=item> +=item B<-X>I, B<--exclude=>I -Do not correct symlinks that contain "item" anywhere in their filename from -being corrected to comply with debian policy. +Exclude symlinks that contain I anywhere in their filename from +being corrected to comply with Debian policy. -=item I +=item I ... -Create a file named "destination" as a link to a file named "source". Do +Create a file named I as a link to a file named I. Do this in the package build directory of the first package acted on. -(Or in all packages if -A is specified.) +(Or in all packages if B<-A> is specified.) =back @@ -74,13 +74,13 @@ this in the package build directory of the first package acted on. dh_link usr/share/man/man1/foo.1 usr/share/man/man1/bar.1 -Make bar.1 be a symlink to foo.1 +Make F be a symlink to F dh_link var/lib/foo usr/lib/foo \ usr/share/man/man1/foo.1 usr/share/man/man1/bar.1 -Make /usr/lib/foo/ be a link to /var/lib/foo/, and bar.1 be a symlink to -the foo.1 +Make F be a link to F, and F be a symlink to +the F =cut