]> git.donarmstrong.com Git - lilypond.git/blob - debian/patches/use_debians_help2man
Use a/b diff prefix instead of upstream name and version
[lilypond.git] / debian / patches / use_debians_help2man
1 Description: Use debian's help2man instead of the version distributed
2 Forwarded: not-needed
3 Origin: vendor
4 Author: Don Armstrong <don@debian.org>
5 --- a/stepmake/stepmake/help2man-rules.make
6 +++ b/stepmake/stepmake/help2man-rules.make
7 @@ -1,24 +1,8 @@
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.
11 -#
12 -# From the perlrun man-page:
13 -#
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
17 -#
18 -# Indeed it is.  Perl sucks.
19 -#
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.
24 -
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 $< > $@
29  else
30 -HELP2MAN_COMMAND = $(buildscript-dir)/help2man "env $$(basename $$(head -1 $<)) $<" > $@
31 +HELP2MAN_COMMAND = help2man "env $$(basename $$(head -1 $<)) $<" > $@
32  endif
33  
34  ifeq ($(strip $(CROSS)),no)
35 @@ -37,6 +21,3 @@
36  $(outdir)/%.1: out/%.1
37         cp $< $@
38  endif
39 -
40 -$(buildscript-dir)/help2man:
41 -       $(MAKE) -C $(depth)/scripts/build