summaryrefslogtreecommitdiff
path: root/dh_auto_install
AgeCommit message (Collapse)AuthorFilesLines
2017-10-28dh,dh_auto_*: Add NOOP promisesNiels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-07Dh_Lib: Embed tool versions into auto-generated snippetsNiels Thykier1-0/+2
Use $main::VERSION to determine the version of the tool and embed that into auto-generated snippets (e.g. via autoscript). This enables lintian to extract the tool + version and display it on: https://lintian.debian.org/tags/debhelper-autoscript-in-maintainer-scripts.html Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03Set Emacs file variables directory-wideSven Joachim1-6/+0
Set the local variables for Emacs in the central placed intended for it, rather than in (currently) 95 individual files. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-25dh_auto_install: In c11, skip creating unrelated directoriesNiels Thykier1-2/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-12dh_auto_install: Avoid unnecessary stat of d/<pkg> dirsNiels Thykier1-6/+2
install_dir does a eqv. test now so there is no reason to repeat it in dh_auto_install. Also, bulking the directories into one call will ensure we only do one fork+exec. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-07-01Migrate to use warnings and use parentNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-08Replace more doit('install' ...) calls to install_XNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-01Add editor hints to the end of all perl modules and scriptsNiels Thykier1-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-05-09dh_auto_install: Create package build directory for those packages whose ↵Joey Hess1-0/+7
makefile falls over otherwise. Closes: #707336
2011-09-25Clarify description of dh_auto_* -- params. Closes: #642786Joey Hess1-2/+2
2010-11-02Apply manual pages conventionsDavid Prévot1-16/+16
As advised in man(1), always use: B<bold text> type exactly as shown. I<italic text> replace with appropriate argument. s/debian/Debian/ if needed. s/ / / also. s/perl/Perl/ s/python/Python/ and s/emacs/Emacs/ too.
2009-08-26cwd is exportedJoey Hess1-1/+1
2009-08-26Support --destdir option in dh_auto_installModestas Vainius1-13/+27
This patch adds --destdir option to dh_auto_install which allows to override destdir auto-selection. This basically closes #538201 since the same requested behaviour can be achieved but in a more clean way. Signed-off-by: Modestas Vainius <modestas@vainius.eu>
2009-07-14Add ant buildsystem support. Closes: #537021Joey Hess1-1/+2
2009-06-29fix pod oopsJoey Hess1-2/+2
2009-06-28Merge branch 'master' into buildsystemsJoey Hess1-2/+1
2009-06-28remove some dh_install stuffJoey Hess1-2/+1
2009-06-28dh_auto_install: Pass --install-layout=deb to setup.py to support python ↵Joey Hess1-0/+1
2.6. Closes: #534620
2009-06-28minimal build system option documentationJoey Hess1-4/+9
2009-06-28Revert "Update dh_auto documentation."Joey Hess1-22/+15
I'm reverting the documentation addition to try doing it myself, more simply and less verbosely. This reverts commit 962a2e10c930e3504ea1c0327be2fdf70d53023e. Conflicts: dh_auto.pod
2009-06-18Update dh_auto documentation.Modestas Vainius1-15/+22
* dh_auto.pod -> dh_auto.7 - contains general information about dh_auto, its features, build systems supported by default (the latter is injected by man/dh_auto_pod script from Debian/Debhelper/Buildsystem/*.pm PODs via placeholders (#PLACEHOLDER#)) * POD in Debian/Debhelper/Buildsystem/*.pm -> dh_auto_<buildsystem>.7 - build system specific information. * dh_auto_* -> dh_auto_*.1 - relatively shorty description of the specific dh_auto_* program and build system specific info for that step injected from Debian/Debhelper/Buildsystem/*.pm with man/dh_auto_pod script. * man/dh_auto_pod $step - generates full dh_auto_$step POD (replaces placeholders). * man/dh_auto_pod - generates full dh_auto.pod (replaces placeholders). Signed-off-by: Modestas Vainius <modestas@vainius.eu>
2009-04-14Modular object-orientied buildsystem implementation (try 2).Modestas Vainius1-3/+2
Major changess: * Dh_Buildsystem_Option dropped and Dh_Buildsystem_Chdir functionality partitially merged into Dh_Buildsystem_Basic. Dh_Buildsystem_Bases.pm renamed to Dh_Buildsystem_Basic.pm to match classname. * *_impl() ditched completely. Previous {configure,build,test,install,clean}_impl() renamed to just configure(), build(), test(), install(), clean() instead. Added pre_action($action) and post_action($action) hooks instead which are called by Dh_Buildsystems::buildsystems_do(). * Builddir is handled via mkdir_builddir(), doit_in_buildddir(), clean_builddir() methods which buildsystems should call directly. Removed get_top* method, added get_rel2builddir_path(). * is_buildable() method renamed to is_auto_buildable() to reflect its purpose more. * ::perl_makefile renamed to ::perl_makemaker and which is based on ::makefile now. MakeMaker hack moved from ::makefile to ::perl_makemaker where it belongs (thanks for the tip). * Dh_Buildsystems refactored into a simple perl module rather than OO class and simplified a bit. * @BUILDSYSTEMS and is_auto_buildable() modified to 100% match historical order. TODO: user documentation (e.g. DH_AUTO_BUILDDIRECTORY and DH_AUTO_BUILDSYSTEM environment variables and common dh_auto_* options (--buildsystem and --builddirectory)). Current plugin inheritance hierarchy is like this: Buildsystem::perl_build -> Dh_Buildsystem_Basic <- Buildsystem::python_distutils ^ | Buildsystem::makefile <- Buildsystem::perl_makemaker ^ ^ ^ / | \ Buildsystem::autotools Buildsystem::cmake Buildsystem::python_distutils Signed-off-by: Modestas Vainius <modestas@vainius.eu>
2009-04-10Migrates dh_auto_* commands to Dh_Buildsystems.pmModestas Vainius1-35/+4
This patch switches dh_auto_* commands to use Dh_Buildsystems.pm module. Most of them became very minimal by design. Documentation has not been updated with new features yet. Signed-off-by: Modestas Vainius <modestas@vainius.eu>
2009-03-09Set MODULEBUILDRC environment variableAnsgar Burchardt1-0/+1
When building packages using Module::Build and a ~/.modulebuildrc containing install install_base=~ the build will end up installing files in /root. This patch makes debhelper export MODULEBUILDRC="/dev/null" whenever Module::Build is used to avoid using ~/.modulebuildrc. Closes: #517423 Signed-off-by: Ansgar Burchardt <ansgar@43-1.org>
2008-08-22dh_auto_install: Improve check for MakeMaker, to avoid passing PREFIX if the ↵Joey Hess1-2/+5
Makefile was generated by Module::Build::Compat. Closes: #496157
2008-07-31typosJoey Hess1-1/+1
2008-07-31dh_auto_install: Still contained copy&paste doc from dh_auto_cleanFrank Lichtenheld1-1/+1
740128be21fda69c6ee4653f7dd13bd707aec39e didn't get all the leftovers.
2008-07-23dh_auto_install: Fix man page, was referring to dh_auto_clean.Per Olofsson1-1/+1
2008-06-25dh_auto_install: Rather than looking at the number of binary packages being ↵7.0.13Joey Hess1-3/+4
acted on, look at the total number of binary packages in the source package when deciding whether to install to debian/package or debian/tmp. This avoids inconsistencies when building mixed arch all+any packages using the binary-indep and binary-arch targets. Closes: #487938
2008-05-19type fixJoey Hess1-1/+1
2008-04-24dh_auto_*: Also support packages using Module::Build.Joey Hess1-3/+6
* dh_auto_*: Also support packages using Module::Build. * dh_auto_*: Fix some calls to setup.py.
2008-04-23new method to tell if a makefile contains a targetJoey Hess1-6/+4
2008-04-23dh_auto_install: New program, automates running make install, or using ↵Joey Hess1-0/+102
setup.py to install. Supports the PREFIX=/usr special case needed by MakeMaker Makefiles. (Support for cmake and other build systems planned but not yet implemented.)