]> git.donarmstrong.com Git - lilypond.git/blob - debian/patches/use_debians_help2man
67f83a93e24c973cfb097a81b16d4d6989581228
[lilypond.git] / debian / patches / use_debians_help2man
1 --- lilypond-2.18.0.orig/stepmake/stepmake/help2man-rules.make
2 +++ lilypond-2.18.0/stepmake/stepmake/help2man-rules.make
3 @@ -1,24 +1,8 @@
4 -# We must invoke the generated $(outdir)/help2man script instead of
5 -# the help2man.pl source, which means that the scripts/build directory
6 -# must be built first.
7 -#
8 -# From the perlrun man-page:
9 -#
10 -#      If the #! line does not contain the word "perl", the
11 -#       program named after the #! is executed instead of the Perl
12 -#       interpreter.  This is slightly bizarre, but it helps
13 -#
14 -# Indeed it is.  Perl sucks.
15 -#
16 -# Two screenfulls explaining that the otherwise standard #! is broken
17 -# for perl, and arguing that this broken magic is better in some
18 -# cases.  Four more explaining what a line comment is, and that it may
19 -# be parsed, same here.
20 -
21 +# The distributed help2man sucks; use the Debian version instead.
22  ifeq ($(PYTHON),$(TARGET_PYTHON))
23 -HELP2MAN_COMMAND = $(buildscript-dir)/help2man $< > $@
24 +HELP2MAN_COMMAND = help2man $< > $@
25  else
26 -HELP2MAN_COMMAND = $(buildscript-dir)/help2man "env $$(basename $$(head -1 $<)) $<" > $@
27 +HELP2MAN_COMMAND = help2man "env $$(basename $$(head -1 $<)) $<" > $@
28  endif
29  
30  ifeq ($(strip $(CROSS)),no)
31 @@ -37,6 +21,3 @@
32  $(outdir)/%.1: out/%.1
33         cp $< $@
34  endif
35 -
36 -$(buildscript-dir)/help2man:
37 -       $(MAKE) -C $(depth)/scripts/build