Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2021-08-31 15:46:03
Size: 665
Editor: ZugSchlus
Comment: create new page. wtf did this not exist before?!?
Revision 3 as of 2021-09-01 03:01:06
Size: 746
Editor: PaulWise
Comment: fix spacing
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Debhelper is a tool that is used inside debian/rules files to ease packacke building. This page desperately needs more content Debhelper is a tool that is used inside debian/rules files to ease package building. This page collects tips for using debhelper.
Line 5: Line 5:
== docs == == Documentation ==
Line 7: Line 7:
Add links to debhelper documentation here.  * Manual pages: [[DebianMan:debhelper|debhelper(7)]] [[DebianMan:dh|dh(1)]]
Line 9: Line 9:
== finding out how it works == == Finding out how it works ==
Line 11: Line 11:
* dh(1) prints which commands it executes. If you set DH_VERBOSE=1 in the rules you should also see what do debhelper helpers do in more details.
* You can run `dh <target> --no-act` for each <target> you want (build,
clean, binary etc.) to see what will dh(1) run for that target.
 * `dh` prints the commands that it executes.
 *
If you add `export DH_VERBOSE=1` to `debian/rules`, the debhelper commands will print more information about what they are doing.
 * You can run `dh <target> --no-act` for each <target> you want (build, clean, binary etc.) to see what `dh` would run for that target.
Line 15: Line 15:
== why does this page exist == == Why does this page exist ==
Line 17: Line 17:
ZugSchlus stumbled upon helpful snippets by wRAR on debian-mentors and wanted to put them on the Wiki ZugSchlus stumbled upon helpful snippets by wRAR on debian-mentors and wanted to put them on the Wiki.

debhelper

Debhelper is a tool that is used inside debian/rules files to ease package building. This page collects tips for using debhelper.

Documentation

Finding out how it works

  • dh prints the commands that it executes.

  • If you add export DH_VERBOSE=1 to debian/rules, the debhelper commands will print more information about what they are doing.

  • You can run dh <target> --no-act for each <target> you want (build, clean, binary etc.) to see what dh would run for that target.

Why does this page exist

ZugSchlus stumbled upon helpful snippets by wRAR on debian-mentors and wanted to put them on the Wiki.