diff options
author | Niels Thykier <niels@thykier.net> | 2015-04-29 20:01:31 +0200 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-04-29 20:01:31 +0200 |
commit | 2a9c9a24bea706be2bdb547808c4de1b72d2c01f (patch) | |
tree | 48c766c47c1527f3d60f109188a0510102779fba /dh_install | |
parent | 9a81fcd70abf0cacdeeed3f97608dd1547f84be5 (diff) | |
download | debhelper-2a9c9a24bea706be2bdb547808c4de1b72d2c01f.tar.gz |
dh_install: Document how to use dh-exec to rename files
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_install')
-rwxr-xr-x | dh_install | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -258,6 +258,25 @@ if ($dh{LIST_MISSING} || $dh{FAIL_MISSING}) { B<dh_install> cannot rename files or directories, it can only install them with the names they already have into wherever you want in the package build tree. + +However, renaming can be achieved by using B<dh-exec> with compat 9 or +later. An example debian/I<package>.install file using B<dh-exec> +could look like: + + #!/usr/bin/dh-exec + debian/default.conf => /etc/my-package/start.conf + +Please remember the following three things: + +=over 4 + +=item * The package must be using compat 9 or later (see L<debhelper(7)>) + +=item * The package will need a build-dependency on dh-exec. + +=item * The install file must be marked executable. + +=back =head1 SEE ALSO |