1 Description: Use debian's help2man instead of the version distributed
4 Author: Don Armstrong <don@debian.org>
5 --- a/stepmake/stepmake/help2man-rules.make
6 +++ b/stepmake/stepmake/help2man-rules.make
8 -# We must invoke the generated $(outdir)/help2man script instead of
9 -# the help2man.pl source, which means that the scripts/build directory
10 -# must be built first.
12 -# From the perlrun man-page:
14 -# If the #! line does not contain the word "perl", the
15 -# program named after the #! is executed instead of the Perl
16 -# interpreter. This is slightly bizarre, but it helps
18 -# Indeed it is. Perl sucks.
20 -# Two screenfulls explaining that the otherwise standard #! is broken
21 -# for perl, and arguing that this broken magic is better in some
22 -# cases. Four more explaining what a line comment is, and that it may
23 -# be parsed, same here.
25 +# The distributed help2man sucks; use the Debian version instead.
26 ifeq ($(PYTHON),$(TARGET_PYTHON))
27 -HELP2MAN_COMMAND = $(buildscript-dir)/help2man $< > $@
28 +HELP2MAN_COMMAND = help2man $< > $@
30 -HELP2MAN_COMMAND = $(buildscript-dir)/help2man "env $$(basename $$(head -1 $<)) $<" > $@
31 +HELP2MAN_COMMAND = help2man "env $$(basename $$(head -1 $<)) $<" > $@
34 ifeq ($(strip $(CROSS)),no)
36 $(outdir)/%.1: out/%.1
40 -$(buildscript-dir)/help2man:
41 - $(MAKE) -C $(depth)/scripts/build