]> git.donarmstrong.com Git - debhelper.git/blob - dh_auto_install
Update dh_auto documentation.
[debhelper.git] / dh_auto_install
1 #!/usr/bin/perl -w
2
3 =head1 NAME
4
5 dh_auto_install - install built files into the temporary directory under debian/
6
7 =cut
8
9 use strict;
10 use Debian::Debhelper::Dh_Lib;
11 use Debian::Debhelper::Dh_Buildsystems;
12 use Cwd;
13
14 =head1 SYNOPSIS
15
16 B<dh_auto_install> [S<I<debhelper options>>] [S<I<dh_auto options>>] [S<B<--> I<params>>]
17
18 =head1 DESCRIPTION
19
20 dh_auto_install is a debhelper program that is responsible for the I<install>
21 step of the L<dh_auto(7)> building process. dh_auto_install tries to run
22 original package installation routine to install built files into the proper
23 places of the file system hierarchy recreated under the (temporary) directory
24 in debian/.
25
26 The files are installed into debian/<package>/ if there is only one binary
27 package. In the multiple binary package case, the files are instead
28 installed into debian/tmp/, and should be moved from there to the
29 appropriate package build directory using L<dh_install(1)> or
30 L<dh_movefiles(1)>.
31
32 If dh_auto_install does not meet your needs or does not work, it is safe to
33 skip/override it entirely and just run C<make install> or the like manually.
34
35 #DH_AUTO SHARED OPTIONS#
36
37 =head1 OPTIONS
38
39 =over 4
40
41 =item B<--> I<params>
42
43 Pass "params" to the program that is run. These can be used to supplement
44 or override the any standard parameters that dh_auto_install passes.
45
46 =back
47
48 =head1 SUPPORTED BUILD SYSTEMS
49
50 #SUPPORTED BUILD SYSTEMS INTRO#
51 #SUPPORTED BUILD SYSTEMS LIST#
52
53 =cut
54
55 buildsystems_init();
56
57 my $destdir;
58 my @allpackages=getpackages();
59 if (@allpackages > 1) {
60         $destdir="debian/tmp";
61 }
62 else {
63         $destdir=tmpdir($dh{MAINPACKAGE});
64 }
65 $destdir=cwd()."/".$destdir;
66
67 buildsystems_do("install", $destdir);
68
69 =head1 SEE ALSO
70
71 L<dh_auto(7)>
72
73 L<debhelper(7)>
74
75 This program is a part of debhelper and its dh_auto package source building
76 suite.
77
78 =head1 AUTHORS
79
80  Joey Hess <joeyh@debian.org>
81  Modestas Vainius <modestas@vainius.eu>
82
83 =cut